Re: Data point on the competition regarding selectivity of unknown parameters
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Data point on the competition regarding selectivity of unknown parameters |
| Дата | |
| Msg-id | 5914.1094047100@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Data point on the competition regarding selectivity of unknown parameters (Greg Stark <gsstark@mit.edu>) |
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> One of the things I think has to change with postgres is the default
> selectivity assumptions for inequality operators. They're way to high
> currently.
Maybe so, but 5% is grossly too low. We'd just be throwing ourselves
into a different set of badly misoptimized queries. On what grounds can
you argue that "WHERE x > y" will select only 5% of the rows, if you
have no knowledge about either x or y? (And no, I won't buy the
argument that users are only interested in queries that fetch small
proportions of tables. That argument comes from thinking of only one
class of applications.)
Perhaps more to the point, 5% is still too high to ensure selection of
an indexscan. You'd need something more like 0.5%, which is even more
obviously hopelessly misguided.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера