id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE spectacles ALL PRIMARY, idcontact_production 25753 Using where; Using temporary
1 SIMPLE spectacle_contact ref PRIMARY, idcontact, idspectacle, idrole PRIMARY 4 theatreok_dev.spectacles.idspectacle 1 Using where; Using index; Distinct