Skip to content

Log `UnnestedInFilters#rewrite` calls to make it easier to debug

Mehmet Emin INAC requested to merge 342531_log_query_rewrites into master

What does this MR do and why?

Recently we've introduced a performance optimization by Filter vulnerability reads by the cartesian pro... (!90207 - merged) to speed up querying the vulnerability_reads table.

The optimization is working quite well but it requires all the filtered columns to be indexed by a compound index and we still have some missing columns subject to be filtered by.

For those cases, to make sure the timeout does not happen for an optimized query, we need to log whenever we apply the optimization(This happens automatically).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading