[progress Communities] [progress Openedge Abl] Forum Post: Re: Default Index Used By Sql...

  • Thread starter Thread starter Dileep Dasa
  • Start date Start date
Status
Not open for further replies.
D

Dileep Dasa

Guest
If there are no indexes on a table, then SQL uses default index which is on ROWID. If there are multiple indexes defined on the table, then as ChUIMonster said, SQL uses a cost based optimizer to select the best index. From SQL Development guide: "Selecting an index When the list of candidate index predicates has been determined, the optimizer selects which, if any, it will use for an index scan operation. This selection is cost-based. The optimizer computes the cost for each of the index candidates and the cost for a table scan using the default index. The candidate with the lowest cost is chosen."

Continue reading...
 
Status
Not open for further replies.
Back
Top