feat: add user_id index to profiles table for faster lookups

The new index on the user_id column in the profiles table improves query performance for user-specific lookups, reducing full table scans during authentication and profile retrieval operations.
This commit is contained in:
2026-06-09 04:41:27 +00:00
parent fd328f3000
commit c596a5db6e
83 changed files with 6078 additions and 84 deletions
+16
View File
@@ -69,6 +69,22 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Container ingress (/p/<slug>): proxies HTTP and WebSocket to a published
# container service. Handles upgrade for WS and uses long timeouts.
location /p/ {
proxy_pass http://app;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
location / {
proxy_pass http://app;
proxy_set_header Host $host;