From 384c2efc7ac646e49c193816879041459fae4ade Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 14 May 2026 02:25:52 +0000 Subject: [PATCH] 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. --- tests/test_seo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_seo.py b/tests/test_seo.py index a379cb3d..fb0d7c4d 100644 --- a/tests/test_seo.py +++ b/tests/test_seo.py @@ -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