From 9c79f353c0ab4915c99c6c53e6acf5d9381e63c3 Mon Sep 17 00:00:00 2001 From: Tobias Messner Date: Sun, 9 Jul 2023 00:01:48 +0200 Subject: [PATCH] Speed up dataserver rebuilding by loading large tables first --- server/src/airtable-v2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/airtable-v2.js b/server/src/airtable-v2.js index 8c3a1b61..b46a1d42 100644 --- a/server/src/airtable-v2.js +++ b/server/src/airtable-v2.js @@ -173,7 +173,7 @@ function time(secs) { class AirtableManager { constructor() { - this.tableNames = ["Redirects", "Broadcasts", "Clients", "Channels", "Discord Bots", "Players", "Live Guests", "Events", "GFX", "Event Series", "Teams", "Ad Reads", "Ad Read Groups", "News", "Matches", "Themes", "Socials", "Accolades", "Player Relationships", "Brackets", "Headlines", "Maps", "Map Data", "Heroes", "Log Files", "Tracks", "Track Groups", "Track Group Roles"]; + this.tableNames = ["Maps", "Players", "Teams", "Matches", "Themes", "Live Guests", "Redirects", "Broadcasts", "Clients", "Channels", "Discord Bots", "Events", "GFX", "Event Series", "Ad Reads", "Ad Read Groups", "News", "Socials", "Accolades", "Player Relationships", "Brackets", "Headlines", "Map Data", "Heroes", "Log Files", "Tracks", "Track Groups", "Track Group Roles"]; // this.tableNames = ["Redirects", "Broadcasts", "Clients", "Channels", "Discord Bots", "Players", "Live Guests"]; this.tables = this.tableNames.map(tableName => new TableManager(tableName)); this.availableRequests = 5;