Optimize database import queries with improved index selection
This commit is contained in:
@@ -52,7 +52,7 @@ async function importOrders(prodConnection, localConnection) {
|
||||
let processed = 0;
|
||||
|
||||
// Process in batches
|
||||
const batchSize = 20000; // Increased from 1000 since order records are small
|
||||
const batchSize = 10000; // Increased from 1000 since order records are small
|
||||
let offset = 0;
|
||||
|
||||
while (offset < total) {
|
||||
|
||||
Reference in New Issue
Block a user