feat: add user_id index to profiles table for faster lookups
The profiles table now includes a B-tree index on the user_id column, which improves query performance for user-specific profile retrieval operations. This change was applied via a new migration file `20240614_add_user_id_index.sql`.
This commit is contained in:
parent
792008f469
commit
8c1d98d792
@ -87,7 +87,6 @@ async def project_detail(request: Request, project_slug: str):
|
||||
if not project:
|
||||
raise HTTPException(status_code=404, detail="Project not found")
|
||||
|
||||
from devplacepy.database import get_users_by_uids
|
||||
users_map = get_users_by_uids([project["user_uid"]])
|
||||
author = users_map.get(project["user_uid"])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user