[Rpm-maint] [rpm-software-management/rpm] Fix --querybynumber on non-existent record, add test (#911)

Panu Matilainen notifications at github.com
Wed Oct 23 08:26:29 UTC 2019


The problem with fixing this in the db side (by returning data via dbiIndexSet always) is that it requires an actual db get to see how much data there is. While this is cheap with indexes, the main Packages database can be hundreds of megabytes, and to add to the insult you'd have to retrieve it twice because we can't keep it all in memory. Some backends could easily handle retrieving just the keys (ie header numbers), but dunno about BDB and LMDB. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/911#issuecomment-545330235
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191023/5b864c1e/attachment.html>


More information about the Rpm-maint mailing list