diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-02-09 07:39:52 -0500 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-02-09 15:19:20 +0000 |
| commit | f88089bebbc97760d09babe97bbc60a193ba0430 (patch) | |
| tree | 0964834722d2b20f0b09c61382b60d6d90c5cfde /internal/postgres/insert_module_test.go | |
| parent | b214021874c36fb25b2bf9d998740ada4e10a774 (diff) | |
| download | go-x-pkgsite-f88089bebbc97760d09babe97bbc60a193ba0430.tar.xz | |
internal/postgres: fix importGraph to insert fewer modules
The importGraph function was supposed to insert two modules,
but it was inserting many.
This change speeds up TestSearch from about 40 seconds to
about 5 seconds.
Change-Id: Ie5a3d8fe20056fe0b63ad8cc8b5f86cc6811b156
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/290670
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
0 files changed, 0 insertions, 0 deletions
