Fix blocking collection matching with large plugins
This commit is contained in:
@@ -369,6 +369,13 @@ export function db(): Database.Database {
|
||||
backfillLeaderboard(handle);
|
||||
initializeFleetSettings(handle);
|
||||
migrateNativeInstances(handle);
|
||||
// Lifecycle history is retained indefinitely. Admission and status reads
|
||||
// must narrow by server or active state instead of scanning that history.
|
||||
// Install after migrations that rebuild this table or add server_deleted_at.
|
||||
handle.exec(`CREATE INDEX IF NOT EXISTS idx_server_deployments_server
|
||||
ON server_deployments(server, server_deleted_at);
|
||||
CREATE INDEX IF NOT EXISTS idx_server_deployments_state
|
||||
ON server_deployments(state, action, server_deleted_at);`);
|
||||
installReportRevisions(handle);
|
||||
} catch (err) {
|
||||
handle.close();
|
||||
|
||||
Reference in New Issue
Block a user