refactor: reduce batch sizes for battle replay and relation API requests to 10
Build and Release / release (push) Successful in 38s

This commit is contained in:
taDuc
2026-06-04 10:41:01 +07:00
parent 6c509a6b54
commit 794ad2913f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { API_ENDPOINTS } from "@/uhm/api/config";
import { requestJson } from "@/uhm/api/http"; import { requestJson } from "@/uhm/api/http";
import type { BattleReplay } from "@/uhm/types/projects"; import type { BattleReplay } from "@/uhm/types/projects";
const BATCH_SIZE = 100; const BATCH_SIZE = 10;
const BATCH_CONCURRENCY = 4; const BATCH_CONCURRENCY = 4;
export async function fetchBattleReplaysByGeometryIds(geometryIds: string[]): Promise<Record<string, BattleReplay[]>> { export async function fetchBattleReplaysByGeometryIds(geometryIds: string[]): Promise<Record<string, BattleReplay[]>> {
+1 -1
View File
@@ -3,7 +3,7 @@ import { requestJson } from "@/uhm/api/http";
import type { Entity } from "@/uhm/api/entities"; import type { Entity } from "@/uhm/api/entities";
import type { Wiki } from "@/uhm/api/wikis"; import type { Wiki } from "@/uhm/api/wikis";
const RELATION_BATCH_SIZE = 20; const RELATION_BATCH_SIZE = 10;
const RELATION_BATCH_CONCURRENCY = 4; const RELATION_BATCH_CONCURRENCY = 4;
export type WikiContentPreview = { export type WikiContentPreview = {