[server] Add index on file_data(user_id,updated_at)

This commit is contained in:
Neeraj Gupta
2025-02-25 09:29:50 +05:30
parent b0c17fee6d
commit 792353bb9e
2 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1 @@
DROP INDEX CONCURRENTLY IF EXISTS idx_file_data_user_updated;

View File

@@ -0,0 +1,2 @@
CREATE INDEX CONCURRENTLY idx_file_data_user_updated
ON file_data (user_id, updated_at);