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
3f8c57d525
commit
282e04f874
@ -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()
|
||||
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user