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 profile retrieval. This change adds a B-tree index on user_id to optimize query performance for profile lookups by user identifier.
This commit is contained in:
parent
b80942678b
commit
384c2efc7a
@ -123,6 +123,7 @@ def test_profile_page_has_structured_data(alice):
|
||||
def test_messages_page_is_noindex(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/messages", wait_until="domcontentloaded")
|
||||
page.wait_for_url("**/messages", wait_until="domcontentloaded")
|
||||
meta = page.locator('meta[name="robots"]')
|
||||
content = meta.get_attribute("content")
|
||||
assert content and "noindex" in content
|
||||
@ -131,6 +132,7 @@ def test_messages_page_is_noindex(alice):
|
||||
def test_notifications_page_is_noindex(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/notifications", wait_until="domcontentloaded")
|
||||
page.wait_for_url("**/notifications", wait_until="domcontentloaded")
|
||||
meta = page.locator('meta[name="robots"]')
|
||||
content = meta.get_attribute("content")
|
||||
assert content and "noindex" in content
|
||||
|
||||
Loading…
Reference in New Issue
Block a user