Skip to content
Snippets Groups Projects
Commit 2d2e3199 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix: show dumping process for blocks

parent e2d90c6a
No related branches found
No related tags found
No related merge requests found
Pipeline #17403 waiting for manual action
...@@ -26,8 +26,12 @@ export async function addLegacyBlocks(server: Server, wwDAL: WotWizardDAL) { ...@@ -26,8 +26,12 @@ export async function addLegacyBlocks(server: Server, wwDAL: WotWizardDAL) {
return f; return f;
}); });
legacies.forEach((l) => blocksSaved.push(l)); legacies.forEach((l) => blocksSaved.push(l));
if (i % 25000 === 0) { if (i % CommonConstants.BLOCKS_IN_MEMORY_MAX === 0) {
logger.debug("Saving 25 blocks... (%s yet stored)", i); logger.debug(
"Saving %s blocks... (%s yet stored)",
CommonConstants.BLOCKS_IN_MEMORY_MAX,
i
);
await wwDAL.blockDao.insertBatch(blocksSaved); await wwDAL.blockDao.insertBatch(blocksSaved);
blocksSaved = []; blocksSaved = [];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment