]> git.decadent.org.uk Git - dak.git/commit
generate_releases: reduce number of sql queries for by-hash files
authorJulien Cristau <jcristau@debian.org>
Wed, 18 May 2016 13:45:57 +0000 (15:45 +0200)
committerJulien Cristau <jcristau@debian.org>
Wed, 18 May 2016 13:55:15 +0000 (15:55 +0200)
commit2abbcc53125eb1e9288698ca3a734016b601453c
treeaa6bd124fc3e4be2b217d4d4676d1e5ec6cdb856
parentd6f184c345b49d95274f245c78d0a7976dcbc115
generate_releases: reduce number of sql queries for by-hash files

Instead of doing two queries per filename and per hash function, store a
set of known hashfiles up front and group the UPDATEs in a single query.

Suggested by Colin Watson.

Signed-off-by: Julien Cristau <jcristau@debian.org>
dak/generate_releases.py