If there is an appropriate index and the SQL optimizer determines that using the index will improve performance, the SQL optimizer uses the index without being told to do so. The optimizer is not 100% correct in every case. Although there are SQL commands that will force the use of an index, you do not have control over the PROC SQL that is automatically generated by the query layer used by Web Report Studio.
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Thank you for all that feedback.
Its a pitty that I dont have control over the named strip function. Off course the SQL optimizer does not choose an index if the statement contains a strip function in the where condition.
But I found a some kind of workaround. Predefining the same Filter in Maps does not cause the strip function and so the index is working then.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.