Add indexes for the fields used in JOIN