Bug#376685: create database in background?

Loïc Minier lool at dooz.org
Tue Jan 9 12:07:27 CET 2007


        Hi,

 Some thoughts on your proposal:

On Tue, Jul 04, 2006, Holger Levsen wrote:
> similar to #214193 - creating the scrollkeeper database for the first time 
> takes quite some time. Would it be possible to create the database in the 
> background, so that the installation can continue?

 It would be nice to have a service to package maintainers to invoke
 hooks at the end at a dpkg or APT run, something like "package group
 postinst".  There's currently no way to avoid running
 scrollkeeper-update multiple times when multiple packages update their
 ScrollKeeper files.

 There's an hackish way of doing this which is to wait for the PID of
 dpkg to die in a daemonized subprocess spawned during postinst, but
 this is ugly and I would not consider it as a blessed practice.

 Another radical solution would be to defer rebuilds on actual uses of
 the database, but I'm not sure whether they are easy to track.

 I also imagine we could put this is some single time cron, but this
 would mean an unpredictable delay to the time of database availability.

   Bye,
-- 
Loïc Minier <lool at dooz.org>





More information about the Pkg-gnome-maintainers mailing list