Quels index pour cette requete ?
Je ne suis pas un spécialiste des index, pour cette requête, quels index sont conseillés ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
select
dossier.DNUMERO as dossierNotreReference
from dossier left join dogest on
dogest.NUMDOS=dossier.DNUMERO
and dogest.RANGCODEPOS=1
and dogest.DATEHFINAFFECT IS NULL
and dogest.societe_id = dossier.societe_id
INNER JOIN transposition on dogest.CODEPOS = transposition.codepos
and transposition.societe_id = dogest.societe_id
and transposition.visibilite = 1
where dossier.societe_id =9 and (dossier.DNUMCLI in ( ' 532')) order by dossierNotreReference ASC LIMIT 0,5 |
Sachant que j'ai :
- 50000 lignes dans dossier
- 50000 lignes dans dogest
- 100 lignes dans transposition