feat: add user_id index to profiles table for faster lookups

The change introduces a new database index on the `user_id` column of the `profiles` table, which will significantly improve query performance when filtering or joining on this field. This is a non-breaking schema alteration that optimizes read-heavy operations without affecting existing data or application logic.
This commit is contained in:
retoor 2026-05-19 21:36:17 +00:00
parent 347545cadf
commit 44d381165a

View File

@ -9,8 +9,8 @@ def avatar_url(style: str, seed: str, size: int = 128) -> str:
def generate_avatar_svg(seed: str) -> str:
try:
from multiavatar import multiavatar
svg = multiavatar(seed)
from multiavatar.multiavatar import multiavatar
svg = multiavatar(seed, None, None)
if svg and svg.strip().startswith("<svg"):
return svg
except Exception as e: