import: Disable indexes on-demand
commit418b8478218cc8083bada85717d7ffead9915af8
authorAndreas Ericsson <ae@op5.se>
Wed, 5 May 2010 20:17:04 +0000 (5 22:17 +0200)
committerAndreas Ericsson <ae@op5.se>
Wed, 5 May 2010 20:17:04 +0000 (5 22:17 +0200)
tree3a28373c8459b649caf298514a5bce1d99f2e5cb
parent4259f604b01883a693508e4eba3705ac0052696e
import: Disable indexes on-demand

The normal mode of operation for this program to be run is on package
updates. For people with large databases the index creation alone can
take a considerable amount of time, during which Nagios isn't running.

Since this is the normal case, we should optimize for it, and this patch
does just that. When everything is fully imported (ie, normal), the
import program should now complete in little over a second.

Those who aren't fully imported get very slightly penalized, but not so
much that it hurts noticeably.

Signed-off-by: Andreas Ericsson <ae@op5.se>
import.c