Mailinglist Archive: zypp-devel (42 mails)
| < Previous | Next > |
Re: [zypp-devel] reading file lists from metadata
- From: Klaus Kaempf <kkaempf@xxxxxxx>
- Date: Fri, 27 Apr 2007 14:09:11 +0200
- Message-id: <20070427120911.GA18253@xxxxxxxxxxxxx>
* Jiri Srain <jsrain@xxxxxxx> [Apr 27. 2007 13:42]:
>
> > And why is order important ?
> >
> > Parse primary first, read one package, write one package.
> > Then other.
>
> Find each package in the database, modify it. I thought that was what Jano
> wanted to avoid.
sqlite is reasonably fast and does quite good caching.
It might be helpful to have different tables for (the attributes
contained in) primary, other, and filelists.
So you don't have to modify a table entry, but just to query
the 'master' table for the package id and do 'stream' writing
to the other tables. With an index, this should be cheap.
Klaus
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
>
> > And why is order important ?
> >
> > Parse primary first, read one package, write one package.
> > Then other.
>
> Find each package in the database, modify it. I thought that was what Jano
> wanted to avoid.
sqlite is reasonably fast and does quite good caching.
It might be helpful to have different tables for (the attributes
contained in) primary, other, and filelists.
So you don't have to modify a table entry, but just to query
the 'master' table for the package id and do 'stream' writing
to the other tables. With an index, this should be cheap.
Klaus
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |