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 profile retrieval operations, reducing full table scans during authentication and profile loading workflows.
This commit is contained in:
2026-05-30 18:16:39 +00:00
parent b65e2920de
commit 247b7d738e
57 changed files with 1310 additions and 674 deletions
+11
View File
@@ -0,0 +1,11 @@
<div class="post-votes">
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
<input type="hidden" name="value" value="1">
<button type="submit" class="post-action-btn vote-up{% if _my_vote == 1 %} voted{% endif %}">+</button>
</form>
<span class="post-vote-count" data-vote-count="{{ _uid }}">{{ _count }}</span>
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
<input type="hidden" name="value" value="-1">
<button type="submit" class="post-action-btn vote-down{% if _my_vote == -1 %} voted{% endif %}">−</button>
</form>
</div>