Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Quick filter applies wild cards - bad performance result

Posted on by 811

On each listpage in ax 2012 there is the "quick filter" field on the right top of the listpage, just above the grid section.

The problem here is, when a user enters a search word, ax applies wildcards in backgroud - you have no control over it. 

Eg, you search for a user by name and you enter "Bob Hope". Ax will search using "*Bob Hope*" and in sql it becomes "And name like '%Bob Hope%'.

Anyone who knows a little bit about sql knows that putting a wildcard in front of a search is a killer for performance. It even has as a result that even if you would have an index on that field, the index is not used because of the wildcard in front. 

In our case, one of our clients has more than 2.000.000 customers in its system and when searching for a customer using the quick filter, it takes forever to find results. But when using the same search term using the right click "filter by field" the results are found instant.

It is pretty hard to explain to our client why he should not be using this quickfilter, "why is there when we can't use it"?

So my question is: can anyone tell me why this is was designed like this AND, even better, if we can tweak this behaviour. (I took a trace, but can't find a tweak-point, it seems like a part of this behaviour is handled in kernel code).

Thanks for your reply!

Kr,

Sven

*This post is locked for comments

  • Annette Theissen Profile Picture
    Annette Theissen 1,653 on at
    RE: Quick filter applies wild cards - bad performance result

    Hi Sven,

    I only can confirm the behaviour and that we haven't found a way to convince our customers (or ourselves) that it's a good thing ;-)

    Only replying so that you have more backup from the community if you make a request to MS.

    Kind regards,

    Annette

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,113 Super User 2024 Season 2 on at
    RE: Quick filter applies wild cards - bad performance result

    Hi Sven,

    This is a great question. It is by design. This is indeed done within the kernel. We can't control it. I would suggest to create a support issue for Microsoft.

    Teaching the workaround is recommended here. At some customers it was hard to explain why this field automatically adds the wild cards and the filter by field or advanced query form not. They stated they would like to have consistency.

  • Guy Terry Profile Picture
    Guy Terry 28,606 Super User 2024 Season 2 on at
    RE: Quick filter applies wild cards - bad performance result

    I've noticed something similar in an environment which has 2 million items. I can't answer your specific questions, but I would suggest to enable Filter by Grid (Ctrl + G). It then becomes as easy to filter for Customer in the data grid as it is by using the quick filter bar.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans