Skip to content

Commit

Permalink
fix(cli): small the insert page size
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 11, 2024
1 parent 15f9931 commit bdcb66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/dmhy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export async function insertDmhy(database: Database, dir: string) {
const teamsResp = await insertTeams(database, [...teams.values()]);
console.log(`Insert ${teamsResp.length} teams`);

const chunks = splitChunks(all, 1000);
const chunks = splitChunks(all, 100);
for (const resources of chunks) {
const resp = await insertDmhyResources(database, resources);
console.log(`Insert ${resp.length} dmhy resources`);
Expand Down

0 comments on commit bdcb66e

Please sign in to comment.