The profiles table previously lacked an index on the user_id column, causing sequential scans during JOIN operations with the users table. This change adds a B-tree index on user_id to improve query performance for profile retrieval by user identifier.