vendredi 6 novembre 2015

Les hints Access Path

il existe différents types de hints Access Path :


  • Full (table_alias). Permet de forcer un parcours complet d’une table au lieu d’utiliser un index.
  • Index (table_alias Nom_index). Permet de forcer l’utilisation d’un index en particulier lors de l’accès à une table. Ce hint est le plus utilisé car il empêche l’optimiseur d’écarter, à tort, un index s’il y a des erreurs d’estimation des cardinalités:                                                                                 select /*+index(TAB IDX_COL1) */  * from MYTABLE TAB where id >500000;
  • No_Index (table_alias Nom_index). Interdit l’utilisation d’un index particulier lors de l’accès à une table : select /*+no_index(TAB IDX_COL1) */  * from MYTABLE TAB where id >500000;
  • Index_FFS (table_alias Nom_index). Permet de forcer un Fast Full Scan sur un index.
  • No_Index_FFS (table_alias Nom_index). Interdit un Fast Full Scan sur un index.
  • Index_SS (table_alias Nom_index). Permet de forcer un Skip Scan sur un index.
  • No_Index_SS (table_alias Nom_index). Interdit un Skip Scan sur un index.
  • Index_RS (table_alias Nom_index). Permet de forcer un Range Scan sur un index (n’apparaît pas dans la documentation officielle).
  • INDEX_COMBINE(table_alias Nom_index1 Nom_index2 …). Force une combinaison de type bitmap de plusieurs index B*Tree.
  • INDEX_JOIN (table_alias Nom_index1 Nom_index2 …). Force une combinaison par jointure de plusieurs index.

Aucun commentaire:

Enregistrer un commentaire