Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Re: [PATCH 4/5] Add IndexedVardb class.
Date: Wed, 05 Nov 2014 09:59:53
Message-Id: 5459F511.9020409@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 4/5] Add IndexedVardb class. by Zac Medico
1 On 11/01/2014 03:46 PM, Zac Medico wrote:
2 > Searching of installed packages is optimized to take advantage of
3 > vardbdbapi._aux_cache, which is backed by vdb_metadata.pickle.
4 > This class only implements a subset of vardbapi functionality that is
5 > useful for searching incrementally. For this reason, the cp_all method
6 > returns an ordered iterator instead of a list, so that search results
7 > can be displayed incrementally.
8 >
9 > X-Gentoo-Bug: 525718
10 > X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=525718
11
12 I think we should create a vdb index that can be appended to, like a
13 journal. Then IndexedVardb could just read the index/journal and that
14 would provide all of the needed data without having to look inside
15 /var/db/pkg/*.
16 --
17 Thanks,
18 Zac

Replies