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:
parent
409b3dce5c
commit
4b98c445d2
@ -78,12 +78,12 @@
|
|||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: calc(var(--comment-depth, 0) * 0.25rem);
|
margin-left: calc(var(--comment-depth, 0) * 0.0625rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-replies {
|
.comment-replies {
|
||||||
margin-top: 0.75rem;
|
margin-top: 0.75rem;
|
||||||
padding-left: 0.25rem;
|
padding-left: 0.0625rem;
|
||||||
border-left: 2px solid var(--border);
|
border-left: 2px solid var(--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,7 +216,7 @@
|
|||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
margin-left: calc(var(--comment-depth, 0) * 0.1rem);
|
margin-left: calc(var(--comment-depth, 0) * 0.025rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-votes {
|
.comment-votes {
|
||||||
@ -224,7 +224,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment-replies {
|
.comment-replies {
|
||||||
padding-left: 0.1rem;
|
padding-left: 0.025rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user