| От | Tom Lane |
|---|---|
| Тема | Re: LONG delete with LOTS of FK's |
| Дата | |
| Msg-id | 8625.1368201437@sss.pgh.pa.us обсуждение |
| Ответ на | Re: LONG delete with LOTS of FK's (Larry Rosenman <ler@lerctr.org>) |
| Ответы |
Re: LONG delete with LOTS of FK's
|
| Список | pgsql-general |
Larry Rosenman <ler@lerctr.org> writes:
> On 2013-05-10 09:14, Tom Lane wrote:
>> ... and verify you get a cheap plan for each referencing table.
> We don't :(
Ugh. I bet the problem is that in some of these tables, there are lots
and lots of duplicate account ids, such that seqscans look like a good
bet when searching for an otherwise-unknown id. You don't see this
with a handwritten test for a specific id because then the planner can
see it's not any of the common values.
9.2 would fix this for you --- any chance of updating?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера