Skip to content

Commit

Permalink
chore: reduce global record max (75k -> 55k)
Browse files Browse the repository at this point in the history
This brings it to only 5k above the per-edge max, which is 5k higher
than previous broken behavior. Should slightly improve overall
performance while still leaving possibility for some heavy queries to
continue.
  • Loading branch information
tokebe committed Oct 22, 2024
1 parent 501df36 commit 1924a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class SubQueryDispatcher {
this.records = [];
this.currentlyDispatched = 0;
this.maxRecords = parseInt(process.env.MAX_RECORDS_PER_EDGE) || 50000;
this.globalMaxRecords = parseInt(process.env.MAX_RECORDS_TOTAL) || 75000;
this.globalMaxRecords = parseInt(process.env.MAX_RECORDS_TOTAL) || 55000;
this.totalRecords = 0;
this.done = false;
this.logs = [];
Expand Down

0 comments on commit 1924a11

Please sign in to comment.