make import performance more reasonable by pre-chunking and tuning queries