@naturalcycles/db-lib 10.1.5 → 10.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -806,7 +806,7 @@ export class CommonDao {
|
|
|
806
806
|
const started = this.logStarted(op, q.table);
|
|
807
807
|
let deleted = 0;
|
|
808
808
|
if (opt.chunkSize) {
|
|
809
|
-
const { chunkSize, chunkConcurrency =
|
|
809
|
+
const { chunkSize, chunkConcurrency = 8 } = opt;
|
|
810
810
|
await _pipeline([
|
|
811
811
|
this.cfg.db.streamQuery(q.select(['id']), opt).map(r => r.id),
|
|
812
812
|
transformChunk({ chunkSize }),
|
package/package.json
CHANGED
|
@@ -1051,7 +1051,7 @@ export class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity = BM, I
|
|
|
1051
1051
|
let deleted = 0
|
|
1052
1052
|
|
|
1053
1053
|
if (opt.chunkSize) {
|
|
1054
|
-
const { chunkSize, chunkConcurrency =
|
|
1054
|
+
const { chunkSize, chunkConcurrency = 8 } = opt
|
|
1055
1055
|
|
|
1056
1056
|
await _pipeline([
|
|
1057
1057
|
this.cfg.db.streamQuery<DBM>(q.select(['id']), opt).map(r => r.id),
|