Chunk large inserts so query size doesn't get too big