From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5919F138825 for ; Wed, 5 Nov 2014 09:59:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3343E0839; Wed, 5 Nov 2014 09:59:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 592FBE07F1 for ; Wed, 5 Nov 2014 09:59:51 +0000 (UTC) Received: from [192.168.1.7] (ip70-181-96-121.oc.oc.cox.net [70.181.96.121]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 2FB6134038E for ; Wed, 5 Nov 2014 09:59:48 +0000 (UTC) Message-ID: <5459F511.9020409@gentoo.org> Date: Wed, 05 Nov 2014 01:59:45 -0800 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] Re: [PATCH 4/5] Add IndexedVardb class. References: <5441DE73.3090601@gentoo.org> <1414881983-19877-1-git-send-email-zmedico@gentoo.org> <1414881983-19877-5-git-send-email-zmedico@gentoo.org> In-Reply-To: <1414881983-19877-5-git-send-email-zmedico@gentoo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: cea33380-d876-47f4-9165-926a5ae643b7 X-Archives-Hash: 3c9887b9ab8b1aee579df3adbb4fae98 On 11/01/2014 03:46 PM, Zac Medico wrote: > Searching of installed packages is optimized to take advantage of > vardbdbapi._aux_cache, which is backed by vdb_metadata.pickle. > This class only implements a subset of vardbapi functionality that is > useful for searching incrementally. For this reason, the cp_all method > returns an ordered iterator instead of a list, so that search results > can be displayed incrementally. > > X-Gentoo-Bug: 525718 > X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=525718 I think we should create a vdb index that can be appended to, like a journal. Then IndexedVardb could just read the index/journal and that would provide all of the needed data without having to look inside /var/db/pkg/*. -- Thanks, Zac