BI multivalue filter with bad performance
Hello,
We are tuning a query and see that the performance issue was in the multivalue filters.
We are filtering invoices with the Code combinations table and filtering directly for every segment with the following structure:
AND (gcc.segment2 IN (:CR) OR 'All' IN (:CR || 'All'))
The value is parametrized in the data model with the option "Multiple Selection" and "NULL Value Passed" selected.
We detect that this structure have several times worse performance than simply don't filter.
Can anyone help telling us the correct structure that we must use to filter correctly a multivalue from the BI Data model without losing performance?
Tagged:
0