Re: Cardinality estimate of the inner relation

2024-11-25 Thread Frédéric Yhuel
On 11/23/24 03:07, Andrei Lepikhov wrote: Thanks for the case provided! Thanks for your answer! I wonder if data science has invented a statistic or selectivity estimation technique that could tackle your case in general. As I see, we should touch the table of products to realise which s

Re: Cardinality estimate of the inner relation

2024-11-22 Thread Andrei Lepikhov
On 22/11/2024 22:53, Frédéric Yhuel wrote: My colleague Christophe Courtois and I have been trying to fix a bad plan for one of Dalibo's clients. It is a (probably well-known) problem with skewed data and a parameterized Nested Loop with an underestimation of the cardinality of the inner relati

Cardinality estimate of the inner relation

2024-11-22 Thread Frédéric Yhuel
My colleague Christophe Courtois and I have been trying to fix a bad plan for one of Dalibo's clients. It is a (probably well-known) problem with skewed data and a parameterized Nested Loop with an underestimation of the cardinality of the inner relation. Here is a test case (the script to cre