• Varun Gupta's avatar
    MDEV-17039: Query plan changes when we use GROUP BY optimization with... · 7d8d37c3
    Varun Gupta authored
    MDEV-17039: Query plan changes when we use GROUP BY optimization with optimizer_use_condition_selectivity=4
                and use_stat_tables= PREFERABLY
    
    Currently the code that calculates selectivity for a table does not take into account the case when
    we can have GROUP BY optimization (looses index scan).
    7d8d37c3
opt_range.cc 494 KB