The arch pages doesn't update when a there's a DB-maintenance in top-left corner!?

When you see DB-maintenance! in the top left corner on the arch pages, it means that the database import script for the Packages files is running. This is a quite excessive task currently and it happened quite often that concurrent accesses/updates to the database from the page generating scripts resulted in broken web pages... This is now avoided by pausing the generation of the webpages. Usually this should only take approx. 30 mins.
When the source for this is released you might be able to give me some hints how to prevent those problems. ;)