@naturalcycles/datastore-lib 4.18.5 → 4.18.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.
|
@@ -75,7 +75,7 @@ export class DatastoreStreamReadable extends Readable {
|
|
|
75
75
|
// console.log(`_read called ${++this.count}, wasRunning: ${this.running}`) // debugging
|
|
76
76
|
this.countReads++;
|
|
77
77
|
if (this.done) {
|
|
78
|
-
this.logger.warn(`!!! _read was called, but done==true`);
|
|
78
|
+
this.logger.warn(`!!! ${this.table} _read was called, but done==true`);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
if (this.paused) {
|
|
@@ -129,7 +129,7 @@ export class DatastoreStreamReadable extends Readable {
|
|
|
129
129
|
if (!info.endCursor ||
|
|
130
130
|
info.moreResults === 'NO_MORE_RESULTS' ||
|
|
131
131
|
(this.originalLimit && this.rowsRetrieved >= this.originalLimit)) {
|
|
132
|
-
logger.log(
|
|
132
|
+
logger.log(`${table} stream is done, ${this.rowsRetrieved} rowsRetrieved, totalWait: ${_ms(this.totalWait)}`);
|
|
133
133
|
this.push(null);
|
|
134
134
|
this.done = true;
|
|
135
135
|
this.paused = false;
|
package/package.json
CHANGED
|
@@ -103,7 +103,7 @@ export class DatastoreStreamReadable<T = any> extends Readable implements Readab
|
|
|
103
103
|
this.countReads++
|
|
104
104
|
|
|
105
105
|
if (this.done) {
|
|
106
|
-
this.logger.warn(`!!! _read was called, but done==true`)
|
|
106
|
+
this.logger.warn(`!!! ${this.table} _read was called, but done==true`)
|
|
107
107
|
return
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -179,7 +179,7 @@ export class DatastoreStreamReadable<T = any> extends Readable implements Readab
|
|
|
179
179
|
(this.originalLimit && this.rowsRetrieved >= this.originalLimit)
|
|
180
180
|
) {
|
|
181
181
|
logger.log(
|
|
182
|
-
|
|
182
|
+
`${table} stream is done, ${this.rowsRetrieved} rowsRetrieved, totalWait: ${_ms(this.totalWait)}`,
|
|
183
183
|
)
|
|
184
184
|
this.push(null)
|
|
185
185
|
this.done = true
|