The profiles table now includes a B-tree index on the user_id column, which improves query performance when filtering or joining on user_id. This change was applied via a new migration file `20240614_add_user_id_index.sql`.