refactor: reduce batch sizes for battle replay and relation API requests to 10
Build and Release / release (push) Successful in 38s
Build and Release / release (push) Successful in 38s
This commit is contained in:
@@ -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[]>> {
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user