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-05-23 08:24:54 +00:00
parent 3f8c57d525
commit 282e04f874
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ def test_messages_header_visible(alice):
def test_messages_bell_icon(alice):
page, _ = alice
page.goto(f"{BASE_URL}/messages")
bell = page.locator(".topnav-icon").first
bell = page.locator(".topnav-icon[href='/notifications']")
assert bell.is_visible()

View File

@ -26,7 +26,7 @@ def test_notifications_navigation(alice):
def test_notifications_bell_visible(alice):
page, _ = alice
page.goto(f"{BASE_URL}/feed")
bell = page.locator(".topnav-icon").first
bell = page.locator(".topnav-icon[href='/notifications']")
assert bell.is_visible()