mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
c721fac466
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
6 lines
352 B
SQL
6 lines
352 B
SQL
-- Partial functional index to speed up periodic cleanup of expired cache resources.
|
|
-- Matches the query: DELETE FROM resource WHERE resource_type = 'cache' AND to_timestamp((value->>'expire')::int) < now()
|
|
CREATE INDEX IF NOT EXISTS idx_resource_cache_expire
|
|
ON resource (to_timestamp((value->>'expire')::int))
|
|
WHERE resource_type = 'cache';
|