fix(api): Reduce Supabase chunk size to prevent fetch timeouts

This commit is contained in:
silvertakana committed 2026-03-05 11:29:54 +13:00
1 parent 7afbe21435
commit ebd4848827
1 file changed
+1 -1
+1 -1
View File
@@ -240,7 +240,7 @@ async function recordToSupabase(states: any[], timeSecs: number) {
// Supabase allows bulk inserts, but a single payload with 5000+ planes can hit PostgREST limits (400 Bad Request)
// We chunk the inserts into smaller batches.
const CHUNK_SIZE = 2000;
const CHUNK_SIZE = 500;
let successCount = 0;
for (let i = 0; i < records.length; i += CHUNK_SIZE) {