aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module_test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-02-09 07:39:52 -0500
committerJonathan Amsterdam <jba@google.com>2021-02-09 15:19:20 +0000
commitf88089bebbc97760d09babe97bbc60a193ba0430 (patch)
tree0964834722d2b20f0b09c61382b60d6d90c5cfde /internal/postgres/insert_module_test.go
parentb214021874c36fb25b2bf9d998740ada4e10a774 (diff)
downloadgo-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