Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

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

Neeraj Gupta792353bb9e2a
diff --git a/server/migrations/97_file_data_user_update_idx.down.sql b/server/migrations/97_file_data_user_update_idx.down.sql
new file mode 100644
index 0000000000..848321602e
--- /dev/null
+++ b/server/migrations/97_file_data_user_update_idx.down.sql
@@ -0,0 +1 @@
+DROP INDEX CONCURRENTLY IF EXISTS idx_file_data_user_updated;
diff --git a/server/migrations/97_file_data_user_update_idx.up.sql b/server/migrations/97_file_data_user_update_idx.up.sql
new file mode 100644
index 0000000000..b0dc8ae140
--- /dev/null
+++ b/server/migrations/97_file_data_user_update_idx.up.sql
@@ -0,0 +1,2 @@
+CREATE INDEX CONCURRENTLY idx_file_data_user_updated
+ ON file_data (user_id, updated_at);