Обсуждение: Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies.

Поиск
Список
Период
Сортировка

Re: [PORTS] Port Bug Report: Suggestion: Allow users to specify optimizer hints or strategies.

От
Bruce Momjian
Дата:
> Given the various complexities of the optimizer, would there be
> any way of allowing developers to specify strategy, or give
> hints. This is allowed in Dec (now Oracle) RDB, and in some
> fashion in both SQL/Server and Sybase.
>
> The sorts of things that might be desirable are: which index to
> join on and the order of joining the tables.
>
> Digital Equipment Corp used to maintain that the optimizer should
> know best, and that developers make more mistakes, and that is
> true. But an experienced DBA, along with details of common
> transactions, can almost always do better than an optimizer.

Usually hand-tuning joins is a symtom of a bad optimizer.  Rdb never had
a world-class optimizer, as far as I remember.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026