]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: create indexes to speed up grooming
authorJosef Cejka <jcejka@suse.de>
Fri, 29 Jul 2022 16:05:05 +0000 (12:05 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 29 Jul 2022 16:05:05 +0000 (12:05 -0400)
commit8d701db033bad8735358abb33e647d7e159e157e
treef490da25da6bc7b62eeb91f974885c2ed8dc1069
parentcc2d459520de4f6680a0e9e9356d014356bd4718
debuginfod: create indexes to speed up grooming

Create indexes on _r_de and _f_de tables
to speed up delete operations called by groom() function.

Primary keys of those tables are optimalized to search rows
by buildids so delete by file and mtime attributes
has to scan the whole table. On large database can single
delete query take minutes and grooming will be aborted
before completion by time limit.

New indexes are compatible with current sqlite schema.

Signed-off-by: Josef Cejka <jcejka@suse.de>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx