Both tables user and preference have id and user_id as indexed fields though the query still doesn\'t use indexing. What
user
preference
id
user_id