diff options
| author | Julie Qiu <julie@golang.org> | 2020-04-22 22:19:27 -0400 |
|---|---|---|
| committer | Julie Qiu <julieqiu@google.com> | 2020-04-23 16:16:47 +0000 |
| commit | 5599c558a14efd44b957ef0da0f49333c13bced5 (patch) | |
| tree | 38dda9bc579dc248809e7adeccb8b1df0e612060 /internal/database/database_test.go | |
| parent | 2a8c3112a0f6e555272149117fe3d98ec9934a32 (diff) | |
| download | go-x-pkgsite-5599c558a14efd44b957ef0da0f49333c13bced5.tar.xz | |
internal/postgres: do not delete package version states
At the moment when we upsert a row into module_version_states, we
delete and repopulate existing rows in package_version_states.
This adds an additional query that is costly and isn't necessary, since
we wouldn't expect there to be packages missing in a future round of
processing. Also, if for some reason that did happen, it would be useful
to have this data captured in package_version_states anyways.
Change-Id: Iceb64235957ade115293bb7c1ff62cdcb2e2073f
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/725870
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/database/database_test.go')
0 files changed, 0 insertions, 0 deletions
