fix: speed up academic degree filter #32

Merged
admin merged 3 commits from fix/academic-degree-filter-performance into main 2026-08-26 15:04:18 +00:00
Showing only changes of commit 9c43e55aec - Show all commits

View File

@@ -3,7 +3,7 @@ ADD COLUMN IF NOT EXISTS has_academic_degree BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE employees
SET has_academic_degree = COALESCE(
current_data::text ~* '(кандидат|доктор).{0,80}наук|ph\\.?[[:space:]]*d\\.?',
current_data::text ~* '(кандидат|доктор).{0,80}наук|ph\.?[[:space:]]*d\.?',
FALSE
);