Bug 901977 - Added a way to limit reindexing, for performance testing.

@lonnen The previous PR only fixed half of the problem. This also adds a way to do performance testing, to be used on stage.