| От | nicolas paris |
|---|---|
| Тема | Re: Merge David and Goliath tables efficiently |
| Дата | |
| Msg-id | dc4115489cd1bbddab1fea3cf0eeb8bdd06657e7.camel@riseup.net обсуждение |
| Ответ на | Re: Merge David and Goliath tables efficiently (Tomas Vondra <tomas.vondra@enterprisedb.com>) |
| Ответы |
Re: Merge David and Goliath tables efficiently
|
| Список | pgsql-performance |
> IMHO the thing that breaks it is the ORDER BY in the merge, which > likely > acts as an optimization fence and prevents all sorts of smart things > including the partitionwise join. I'd bet that if Nicolas replaces > > MERGE INTO "goliath" ca > USING (SELECT * FROM "david" ORDER BY "list_id") AS t > . Sorry if it was not clear, however there is no order by in the 2.1 strategy. Then this cannot be the reason of not triggering the optim. For information I do enable partition join feature with jdbc call just before the merge: set enable_partitionwise_join=true
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера