aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-02-11 14:59:42 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-02-17 10:04:57 +0200
commita42831db3ec3f2308ac8115f2daae9a7dc546dea (patch)
tree25abc200150dc4449e5e429f82cb9d348e995f01 /go.mod
parentFix stable and testing mis-match. (diff)
downloadsoko-a42831db3ec3f2308ac8115f2daae9a7dc546dea.tar.gz
soko-a42831db3ec3f2308ac8115f2daae9a7dc546dea.tar.bz2
soko-a42831db3ec3f2308ac8115f2daae9a7dc546dea.zip
Dependencies: bulk fetch, delete and insert
- use one http request to fetch all rdeps.tar.xz - process all the dependencies in one goroutine as it is fast enough (less than one second) - bulk delete all previous dependencies (from ~10min to <1sec) - bulk insert all dependencies (from ~10min to <1sec) All this bulk work enables the whole procedure to finish in less than 5 sec on my PC (instead of ~25min), uses much less IO, much much less network. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod1
1 files changed, 1 insertions, 0 deletions
diff --git a/go.mod b/go.mod
index 479faba..5a38093 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,7 @@ require (
github.com/jasonlvhit/gocron v0.0.1
github.com/prometheus/client_golang v1.8.0
github.com/vektah/gqlparser/v2 v2.0.1
+ github.com/ulikunitz/xz v0.5.11
)
require (