3 Ways to Improve the Performance of Your Mendix Apps


on December 5, 2014

Today’s end users have high expectations when it comes to app performance. If your application has longer load times that normal, you need to make a change. Here are three tips to improve Mendix app performance. You can also join my webinar on December 12th to learn more app performance best practices.

1. XPaths Constraints and Data Retrievals

Retrieve actions are one of the most time consuming actions. Hence, it is important to optimize your database retrievals as much as possible.

The first thing you can do is optimize your associations; you do not need to call the same association multiple times.

For example, let’s say you are trying to retrieve all the students who have registered in grades less than 5 or greater than 7.  Instead of going over the association twice to check for the grade level, you can go over it once.

Here’s an example:

2. Batches – Limits & Offsets

If your app handles messaging or heavy operations with lots of data, then limits and offsets are for you!

3. Snippets

The introduction of snippets is one of my favorite new additions to Mendix! This widget is helpful when you want to reuse pages or layout components

For example, let’s say that you have to retrieve course information and re-use the course information data grid on multiple pages. Instead of copying and pasting the course information data grid across 2, 3 or even 4+ pages, you can just create one snippet.

Paste the data grid in the snippet and just re-use and call the snippet as often as you need. By using the snippets, you only have to change the data grid in one spot which makes it more efficient. Furthermore, the pages load even faster!

I used snippets in a project recently and found them to be incredibly useful. For more information on how to use snippets, go here. I’ve also included a snippet example along with the snippet call.

Webinar Series Coming Up!

Hopefully these suggestions will help you improve your Mendix app performance. However, it’s important to note that there are many other variables that can influence app speed such as infrastructure, internet speed, widgets and more.

If you’d like to learn additional tips & tricks on this subject, join my webinar on December 12. I’ll cover more business logic and best practices for ensuring app performance with Mendix. We’ll review topics like identifying and improving performance problems, improving your domain models, ensuring security measures are in place, and UI & Widget best practices.