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>