| От | Hannu Krosing |
|---|---|
| Тема | Re: [HACKERS] Slow - grindingly slow - query |
| Дата | |
| Msg-id | 382B29FB.9FFBF61C@tm.ee обсуждение исходный текст |
| Ответ на | Slow - grindingly slow - query (Theo Kramer <theo@flame.co.za>) |
| Список | pgsql-hackers |
Theo Kramer wrote: > > Hi > > I have a single table with two views. The table effectively contains both > master and detail info (legacy stuff I'm afraid). The query in question is > used to see if any records exist in the detail that do not exist in the > master. The table and index definition is as follows > > create table accounts ( > domain text, > registrationtype char > /* Plus a couple of other irrelevant fields */ > ); > > create index domain_idx on accounts (domain); > create index domain_type_idx on accounts (domain, registrationtype); try using create index registrationtype_index on accounts (registrationtype); ------ Hannu
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера