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 previously lacked an index on the user_id column, causing slow query performance when joining or filtering by user_id. This change adds a new B-tree index on user_id to optimize read operations in the user profile retrieval path.