modified: backend/src/services/ScriptExecutor.ts
modified: backend/src/services/SqlExecutor.ts
This commit is contained in:
@@ -52,7 +52,9 @@ export class SqlExecutor {
|
||||
|
||||
// Execute with retry mechanism
|
||||
const result = await this.retryQuery(async () => {
|
||||
return await pool.query(sqlQuery, params);
|
||||
const queryResult = await pool.query(sqlQuery, params);
|
||||
console.log('[SQL Result] rowCount:', queryResult.rowCount, 'rows:', JSON.stringify(queryResult.rows).substring(0, 500));
|
||||
return queryResult;
|
||||
}, 3, 500); // 3 попытки с задержкой 500ms
|
||||
|
||||
const executionTime = Date.now() - startTime;
|
||||
|
||||
Reference in New Issue
Block a user