We all know that optimizing the order of XPath queries during retrieval significantly enhances performance. To assist with this, we have the Mx Performance Bot in place, which identifies unoptimized XPath queries across the app and provides recommendations through the "MxAssist Performance Bot" under code "MXP015". However, the challenge we’re facing is that many, especially new developers, are not paying attention to these recommendations.
I was thinking that it would be extremely helpful if Mendix could automatically reorder XPath queries in an optimized way. This would not only reduce our daily workload but also improve app performance.
I suggest two possible solutions:
That said: To enable automatic XPath reordering, we would need to train the Logic Bot for various scenarios. However, this would greatly benefit all Mendix developers by improving performance and reducing manual work on a daily basis.
Please find the related example screenshots below:
1. Unoptimized Order of XPath Query:
2. Optimized Order of XPath Query: