commit | 323a093db964dbf604da6e9a94b07b7c0dc91e52 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon May 16 08:52:04 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Mon May 16 13:15:18 2022 +0000 |
tree | 7b90c81dd6e6685b8f09bdf5320ed71b8ef8e2ea | |
parent | 014d38720fa5112d767210cb7a8e184d1b3695bb [diff] |
internal/postgres: update imported-by counts in smaller batches The worker periodically updates search_documents.imported_by_count from the imports_unique table. It does so in batches to avoid locking search_documents for too long. Currently the batch size causes the update query to time out, so reduce it. Change-Id: If86d272f0677dbedab104e2e1e235d7f2e1e4b25 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/406296 Reviewed-by: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
Pkgsite requires Go 1.18 to run. The last commit that works with older versions of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see pkg.go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.