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.
12 lines
703 B
HTML
12 lines
703 B
HTML
<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 %}" aria-label="Upvote" title="Upvote">+</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 %}" aria-label="Downvote" title="Downvote">−</button>
|
||
</form>
|
||
</div>
|