chunking based on fetch rate

This commit is contained in:
tresabhi committed 2026-08-12 20:33:38 -05:00
1 parent 5092d43e8e
commit 0f022f8295
2 files changed
+9 -13

No files matched your search

@@ -1,6 +1,9 @@
export const ACCOMMODATED_ID_COUNT = 10_000_000_000; // 10B ids
export const MAX_BYTES_PER_CHUNK = 100 * 1_000_000; // 100MB
export const MAX_IDS_PER_CALL = 100;
export const API_RATE = 10; // 10Hz
export const MAX_IDS_PER_CALL = 100;
export const MAX_DRY_STREAK = 10_000;
export const ACCOMMODATED_ID_COUNT = 500_000_000; // 500M ids
const PERFORMANCE_RUN_TIME = (5 * 60 + 30) * 60;
export const IDS_PER_CHUNK = PERFORMANCE_RUN_TIME * API_RATE;
export const CHUNK_COUNT = Math.ceil(ACCOMMODATED_ID_COUNT / IDS_PER_CHUNK);