merge batch size to avoid cursor timeout