[Rpm-metadata] metadata list and discussion over tapas tonight

Adrian Likins alikins at redhat.com
Tue Aug 5 20:59:15 UTC 2003


On Tue, Aug 05, 2003 at 12:00:28PM -0400, Joe Shaw wrote:
> On Tue, 2003-08-05 at 11:13, Daniel Veillard wrote:
> > To me extracting the File info which may be needed for resolution
> > and putting then in the geberal packages description file is 
> > the simpler way for 99.99% of the cases.
> 
> I do too.  Obviously it may not work for cross-repository resolutions,
> but I think that's actually a good thing in driving policy away from
> file deps.
> 

There seems to be a minor drift from my original idea. The
drift itself doesnt bother me, but it does make me wonder
if I never explained the reasoning behind the approach well
enough.

Basically, given the requirements:
	1. Use as little bandwidth as possible
	2. use static content only
	3. use as few metadata files as possible

I think the best approach is to use the normallized
data in a handful of seperate files.

Ideally, the client would only need to download
a few small metadata files of info crucial for
discovery (aka, package lists, obsoletes). Then
it would fetch the rest of the data if and
when it needs it. ie, save bandwidth unless
we actually need the data.


The data is split in a way that in many cases, when
the repo is updated, only some of the data files
will change and need to be updated (saving bandwidth).

An example of this is the Provides info file. In my 
mind, it's only library and virtual provides listed,
and they are referenced only to package name (or 
possibly packagename and arch, for multilib...). 
The reason being that for a lot of "channels",
when a package is updated, theres a pretty good
chance the "provides" file wont change (aka,
libfoo-1.1 still provides libfoo.so.1). So
that means you dont have to get the new 
provides list (saving bandwidth) 

The package list file is kept trim because
it will be updated often. Some of the other
data metnioned would update far less often,
but can easily be joined with the packagelist
info. So I worry about the package list info
having too much info in it directly, since
this makes for a larger download on a file
that will be downloaded alot. I'd rather
keep the slower changing info in seperate
files to make for better caching. 

To me, dowloading all the info in one
big file is the easiest thing, but it
doesnt jive with "use as little bandwidth
as possible". 

If that requirement isnt as important
as was initially impressed on me, then
any odd variety of other schemes will work
as well. 


Adrian




More information about the Rpm-metadata mailing list