Re: Full text search with ORDER BY performance issue
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Full text search with ORDER BY performance issue |
| Дата | |
| Msg-id | 18985.1248881386@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Full text search with ORDER BY performance issue (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: Full text search with ORDER BY performance issue
|
| Список | pgsql-performance |
Robert Haas <robertmhaas@gmail.com> writes:
> Hmm, good point. It seems like it would be useful to force the
> planner into use the other plan and get EXPLAIN ANALYZE output for
> that for comparison purposes, but off the top of my head I don't know
> how to do that.
The standard way is
begin;
drop index index_you_dont_want_used;
explain problem-query;
rollback;
Ain't transactional DDL wonderful?
(If this is a production system, you do have to worry about the DROP
transiently locking the table; but if you put the above in a script
rather than doing it by hand, it should be fast enough to not be a big
problem.)
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера