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.
The profiles table now includes a B-tree index on the user_id column, which significantly accelerates query performance when filtering or joining on user_id. This change was applied via a new migration file `20240614_add_user_id_index.sql` and affects the `profiles` table schema.
The new index on the user_id column in the profiles table improves query performance for user-specific lookups, reducing full table scans during authentication and profile retrieval operations.