Re: should we have a fast-path planning for OLTP starjoins?
От | James Hunter |
---|---|
Тема | Re: should we have a fast-path planning for OLTP starjoins? |
Дата | |
Msg-id | CAJVSvF7yu0fypZPymFRBJks4_Fg_TakxVgd5gJVNvCx8+0tdmw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: should we have a fast-path planning for OLTP starjoins? (Tomas Vondra <tomas@vondra.me>) |
Ответы |
Re: should we have a fast-path planning for OLTP starjoins?
|
Список | pgsql-hackers |
On Fri, Feb 7, 2025 at 12:09 PM Tomas Vondra <tomas@vondra.me> wrote: > ... > Yes, I think that's pretty much the idea. Except that I don't think we > need to look at the |F| at all - it will have more impact for small |F|, > of course, but it doesn't hurt for large |F|. > > I think it'll probably need to consider which joins increase/decrease > the cardinality, and "inject" the dimension joins in between those. YMMV, but I suspect you may find it much easier to look at |F|, |F JOIN D1|, |(F JOIN D1) JOIN D2|, etc., than to consider |F JOIN D1| / |F|, etc. (In other words, I suspect that considering absolute cardinalities will end up easier/cleaner than considering ratios of increases/decreases in cardinalities.) But I have not thought about this much, so I am not putting too much weight on my suspicions. James
В списке pgsql-hackers по дате отправления: