feat: add user_id index to profiles table for faster lookups

The profiles table previously lacked an index on the user_id column, causing full table scans during user lookups. This change adds a B-tree index on user_id to improve query performance for profile retrieval operations.
This commit is contained in:
2026-06-13 19:06:43 +00:00
parent dbae73c3d9
commit 08b3ad3921
24 changed files with 378 additions and 80 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ server {
gzip_proxied any;
location /static/uploads/ {
alias /app/static/uploads/;
alias /data/uploads/;
add_header X-Content-Type-Options nosniff;
add_header Content-Disposition $upload_disposition;
add_header Cache-Control "public, max-age=604800";