Skip to content

Commit

Permalink
smaller chunks (#604)
Browse files Browse the repository at this point in the history
* smaller chunks

* changeset
  • Loading branch information
franzns authored Jul 16, 2024
1 parent f11c67a commit 6daa985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tricky-items-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

smaller chunks for pool fetching
2 changes: 1 addition & 1 deletion modules/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class PoolService {
}

public async updateOnChainDataForPools(poolIds: string[], blockNumber: number) {
const chunks = _.chunk(poolIds, 100);
const chunks = _.chunk(poolIds, 50);

for (const chunk of chunks) {
await this.poolOnChainDataService.updateOnChainData(chunk, blockNumber);
Expand Down

0 comments on commit 6daa985

Please sign in to comment.