Skip to content

Commit

Permalink
add insertion timer
Browse files Browse the repository at this point in the history
  • Loading branch information
francojreyes committed Oct 16, 2024
1 parent a68c1b0 commit 726cae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcal/src/libraryScraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ const runScrapeJob = async () => {
},
};

console.time("Inserting");
await axios.post(
`${HASURAGRES_URL}/batch_insert`,
[
Expand Down Expand Up @@ -293,6 +294,7 @@ const runScrapeJob = async () => {
],
requestConfig
);
console.timeEnd("Inserting");
};

runScrapeJob();
2 changes: 2 additions & 0 deletions nss/src/runScraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const runScraper = async () => {
},
};

console.time("Inserting");
await axios.post(
`${HASURAGRES_URL}/batch_insert`,
[
Expand Down Expand Up @@ -114,6 +115,7 @@ const runScraper = async () => {
],
requestConfig
);
console.timeEnd("Inserting");
};

runScraper();

0 comments on commit 726cae6

Please sign in to comment.