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.
The new index on the `user_id` column in the `profiles` table improves query performance when filtering or joining by user identifier, reducing full table scans during authentication and profile retrieval operations.