Help! Major performance issues with 1,000,000 rows and formula columns with sorting, filtering and grouping
New DiscussionI have a UltraGrid that is currently getting completed crushed performance wise in my Windows desktop application. It has 4 bands deep of data and roughly 1,000,000 rows. The underlying data source updates periodically (every minute or so). Where the performance issues are coming in is that the user can custom configure as many formula columns as they want, and the user needs to routinely use sorting, grouping and filtering, and sometimes all of those in combination with each other. This includes creating formulas of formulas.
The GUI is a thin client that talks to a server. Currently the server is running a bunch of back end computation and data source processing, then providing all of the grid data to the client, which is then bound via a BindingSource backed by a BindingList. This list is obviously quite large with over 1,000,000 rows.
The obvious solution to me would be to have the grid only actually show a few hundreds rows at a time of data and use calls to the server to fetch whatever data is needed for what the user is currently looking at. The problem is this method doesn't work at all when operations like filtering, sorting and grouping come into play where the grid needs to know the scope of the entire data set. And I do not know the inner workings of the grid well enough to intercept these functionalities and design a client/server messaging and processing pattern to do these things on the backend.
So I'm at a loss at how to make this grid and GUI responsive. Would appreciate some tips and advice. I'm fairly experienced with the UltraGrid as a presentation layer for data (been using it since 2010), but not much with the filtering/grouping/sorting/formula capabilities and appropriate design with huge big data sets.
Also, a separate issue that is driving me crazy, is when the formula builder GUI is called at runtime, the GUI freezes up for a couple seconds after each key stroke as the user tries to type in a formula. It eventually gets the formula and compiles it and is good, but I wish it could stay responsive. Is there a way to "disable" the real time key by key reprocessing of the formula until the user is done?