Gentoo Archives: gentoo-dev

From: Yannick Koehler <yannick.koehler@××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Portage metadata
Date: Thu, 27 Feb 2003 15:39:12
Message-Id: 200302271026.53568.yannick.koehler@colubris.com
In Reply to: [gentoo-dev] Portage metadata by robbat2@orbis-terrarum.net
1 On February 27, 2003 05:23 am, robbat2@××××××××××××××.net wrote:
2 > 1. Is there any defined format to the metadata?
3
4 Each line is a DB field.
5
6 The DB field is defined inside portage.py ->
7
8 auxdbkeys=['DEPEND','RDEPEND','SLOT','SRC_URI','RESTRICT','HOMEPAGE','LICENSE','DESCRIPTION','KEYWORDS','INHERITED','IUSE','CDEPEND','PDEPEND']
9
10 > 2. For later speedups, is anybody looking into using actual database
11 > formats for the data? (GDBM/BDB/NDBM/etc.)
12
13 Python internal DB is cache in memory and is quite fast, for certain task a DB
14 would be faster but most of the time, the python DB seems to kick ass unless
15 you do description search.
16
17 I have written in the past a bash script that generated an XML files out of
18 the /var/db/pkg. If you can import that 4 Megs files inside a DB then you
19 could run some query and time them and see how things get faster.
20
21 --
22
23 Yannick Koehler
24
25
26 --
27 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Portage metadata Nick Jones <carpaski@××××××.net>