mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 00:17:45 +08:00
17 lines
453 B
SQL
17 lines
453 B
SQL
CREATE INDEX IF NOT EXISTS idx_provider_api_keys_provider_active_priority_id
|
|||
|
|
ON provider_api_keys (provider_id, is_active, internal_priority, id);
|
||
|
|
|
||
|
|
CREATE INDEX IF NOT EXISTS pool_member_scores_scheduler_account_rank_idx
|
||
|
|
ON pool_member_scores (
|
||
|
|
pool_kind,
|
||
|
|
pool_id,
|
||
|
|
capability,
|
||
|
|
scope_kind,
|
||
|
|
scope_id,
|
||
|
|
hard_state,
|
||
|
|
score DESC,
|
||
|
|
last_ranked_at DESC,
|
||
|
|
member_id,
|
||
|
|
id
|
||
|
|
);
|