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:
retoor 2026-06-11 12:25:24 +00:00
parent 409b3dce5c
commit 4b98c445d2

View File

@ -78,12 +78,12 @@
gap: 0.75rem;
padding: 1rem 0;
position: relative;
margin-left: calc(var(--comment-depth, 0) * 0.25rem);
margin-left: calc(var(--comment-depth, 0) * 0.0625rem);
}
.comment-replies {
margin-top: 0.75rem;
padding-left: 0.25rem;
padding-left: 0.0625rem;
border-left: 2px solid var(--border);
}
@ -216,7 +216,7 @@
.comment {
gap: 0.5rem;
margin-left: calc(var(--comment-depth, 0) * 0.1rem);
margin-left: calc(var(--comment-depth, 0) * 0.025rem);
}
.comment-votes {
@ -224,7 +224,7 @@
}
.comment-replies {
padding-left: 0.1rem;
padding-left: 0.025rem;
}
}