perf: index workflow route model lookup
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
CREATE INDEX IF NOT EXISTS token_routes_enabled_model_pattern_nocase_idx
|
||||
ON token_routes (COALESCE(enabled, 1), model_pattern COLLATE NOCASE)
|
||||
WHERE model_pattern IS NOT NULL
|
||||
AND model_pattern <> '';
|
||||
Reference in New Issue
Block a user