-
- Downloads
Fix slow query when using nested native question with many rows (#18023)
`query->native` works by having `nativef` throws an exception which causes `mbql->native` to set native query to `nil` which then cause the rest of the execution to be skipped. However, because the existing code skips overriding the native query for queries already native, the execution is not skipped. This causes bad performance for nested native question because `query->native` is called for the sub-query which causes the sub-query to be executed on its own, potentially without any limit or filtering.
Please register or sign in to comment