-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/postgres: update imported-by counts in chunks
If too many rows change imported-by counts, then the /update-imported-by-count endpoint times out after 30 minutes, and nothing gets inserted because it runs as one transaction. Instead, break it into multiple smaller transactions. Since we only update changed counts, then as long as one transaction completes we have made some counts identical, so we will make progress. For golang/go#47555 Change-Id: I546aaabcc5e0f99d71efe38748475274871382c4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341249 Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> Trust: Julie Qiu <julie@golang.org> Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Julie Qiu <julie@golang.org>
- Loading branch information
Showing
2 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters