Bonjour,
Je souhaite optimiser la requête suivante (temps supérieur à 10sec) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 SELECT ................................ FROM dpr_dossier_production AS d INNER JOIN dpr_produit AS p ON p.rid_dossierproductionid = d.dossierproductionid INNER JOIN dpr_prestation AS presta ON presta.rid_produitid = p.produitid INNER JOIN dpr_prestation_tsp AS tsp ON tsp.rid_prestationid = presta.prestationid INNER JOIN dpr_passager_prestation_tsp pp on pp.rid_prestationtspid=tsp.prestationtspid INNER JOIN dpr_passager pax on pax.passagerid=pp.rid_passagerid WHERE d.dossierproductionnumero = 'LLL' order by datedebut
J'ai bien des index sur chaque colonne utilisée pour une jointure, j'ai l'impression que c'est la ligne avec PAX qui pose soucis (voir plan d'exécution), quand je la retire le temps est divisé par 2.
Avez-vous une idée d'optimisation ?
Merci.
Partager