sliftutils 1.4.4 → 1.4.5
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/package.json
CHANGED
|
@@ -335,7 +335,11 @@ export class BulkDatabaseBase<T extends { key: string }> {
|
|
|
335
335
|
|
|
336
336
|
let time = Date.now() - start;
|
|
337
337
|
if (time > 50) {
|
|
338
|
-
|
|
338
|
+
// Bytes we actually had to read: the full stream files + each bulk file's key column (the
|
|
339
|
+
// part we read on load to get its keys).
|
|
340
|
+
let bytesRead = streamData.totalBytes;
|
|
341
|
+
for (const r of bulkReaders) bytesRead += r.columns.find(c => c.column === KEY_COLUMN)?.byteSize ?? 0;
|
|
342
|
+
console.log(`${blue(this.name)} loaded in ${red(formatTime(time))} (${blue(formatNumber(joined.rowCount))} rows, ${bulkFiles.length} bulk + ${streamFiles.length} stream files, read ${blue(formatNumber(bytesRead))}B)`);
|
|
339
343
|
}
|
|
340
344
|
return joined;
|
|
341
345
|
}
|