liekodb 0.1.7 → 0.1.8
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.
- package/liekodb.js +6 -2
- package/package.json +1 -1
package/liekodb.js
CHANGED
|
@@ -197,7 +197,9 @@ class CollectionCache {
|
|
|
197
197
|
data.dirty = false;
|
|
198
198
|
this.dirty.delete(name);
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
if (this.debug) {
|
|
201
|
+
console.log(`[CollectionCache] Saved ${name}.json with ${data.documents.length} documents in ${Format.formatDuration(Utils.endTimer(start))}`);
|
|
202
|
+
}
|
|
201
203
|
return true;
|
|
202
204
|
});
|
|
203
205
|
}
|
|
@@ -225,7 +227,9 @@ class CollectionCache {
|
|
|
225
227
|
|
|
226
228
|
await Promise.all(savePromises);
|
|
227
229
|
|
|
228
|
-
|
|
230
|
+
if (this.debug) {
|
|
231
|
+
console.log(`[CollectionCache] Flushed ${savePromises.length} collections in ${Format.formatDuration(Utils.endTimer(start))}`);
|
|
232
|
+
}
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
async shutdown(signal) {
|