diff options
author | 2023-02-11 14:59:42 +0200 | |
---|---|---|
committer | 2023-02-17 10:04:57 +0200 | |
commit | a42831db3ec3f2308ac8115f2daae9a7dc546dea (patch) | |
tree | 25abc200150dc4449e5e429f82cb9d348e995f01 /go.mod | |
parent | Fix stable and testing mis-match. (diff) | |
download | soko-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.mod | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ( |