Duncan Mac-Vicar Prett wrote:
On Friday 27 April 2007 13:41:46 Jiri Srain wrote:
Find each package in the database, modify it. I thought that was what Jano wanted to avoid.
I meant to avoid the memory consumption that would be necessary otherwise. filelists.xml.gz for factory has 13 megs currently. If done like read package into mem, insert into db, delete from mem, memory consumption is zero...
When you insert a package, you get the id. You can get a map with the ids.
... if done this way, the memory overhead would be only this map with the ids. Still much better than before.
Those optmizations could also be introduced in the cache store.
I would go for this, if it would mean good memory vs. speed-up trade-off. jano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org