mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
chunking based on fetch rate
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user