Add sqlBatchSize to ERS SQL OPTS and adjust delete functionality

This commit is contained in:
arberkatellari
2025-01-14 17:57:57 +02:00
committed by Dan Christian Bogos
parent 7664ffccb4
commit b8cc20bb7c
11 changed files with 26 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
"opts": {
"sqlDBName":"cgrates2",
"sqlTableName":"cdrs",
"sqlBatchSize": 2,
"sqlDeleteIndexedFields": ["id"],
},
"start_delay": "500ms", // wait for db to be populated before starting reader

View File

@@ -26,6 +26,7 @@
"opts": {
"sqlDBName":"cgrates2",
"sqlTableName":"cdrs",
"sqlBatchSize": 20,
},
"start_delay": "500ms", // wait for db to be populated before starting reader
"tenant": "cgrates.org",

View File

@@ -26,6 +26,7 @@
"opts": {
"sqlDBName":"cgrates2",
"sqlTableName":"cdrs",
"sqlBatchSize": 1,
},
"start_delay": "500ms", // wait for db to be populated before starting reader
"processed_path": "*delete",

View File

@@ -42,6 +42,7 @@
"opts": {
"sqlDBName":"cgrates2",
"sqlTableName":"cdrs",
"sqlBatchSize": 0,
"sqlDeleteIndexedFields": ["id"],
},
"start_delay": "500ms", // wait for db to be populated before starting reader

View File

@@ -25,6 +25,7 @@
"opts": {
"sqlDBName": "cgrates2",
"sqlTableName":"cdrs",
"sqlBatchSize": -1,
"sqlUpdateIndexedFields": ["id", "cgrid"],
},
"flags": ["*log"],