Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Help! Major performance issues with 1,000,000 rows and formula columns with sorting, filtering and grouping

Help! Major performance issues with 1,000,000 rows and formula columns with sorting, filtering and grouping

New Discussion
David Widerhorn
David Widerhorn asked on Jun 2, 2020 3:50 PM

I 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?

Sign In to post a reply

Replies

  • 0
    Divya Jain
    Divya Jain answered on Jun 2, 2020 3:50 PM

    Hello David,

    Thank you for contacting. If you are loading 1 million rows into the grid, it would probably help a lot of you loaded the data on-demand. For virtual loading, you need to use UltraDataSource and set the LoadStyle to LoadOnDemand. With LoadStyle set to LoadOnDemand, UltraGrid will not create all of the rows at once. It will create rows when they are needed (which typically is when they are scrolled into view).

    You can find more information here in our help document and you can also find a sample for ‘loading million rows with load on demand’ in our sample browser here.

    Go to sample browser ->Legacy sample->Grid->WinData Source ->Virtual mode

    Sorting in the grid generally requires the grid to load all of the data, but you can do external sorting. Refer this online help document here. Basically this means setting HeaderClickAction on the grid's Override to one of the "External" settings and then handling the sorting yourself via events of the grid).

    Filtering, like sorting, generally requires the grid to load all of the data, but you can do external filtering. You need to disable the default filktering and enable your own custom logic . Refer to this online help document to implement external filtering.

    There's no way to handle Grouping externally.

    You might also want to look at the WinGrid performance guide this ,might help.

    Regarding the Formula Builder… I don't know why every keystroke would cause a delay. If we can reproduce that, it might be a bug. The number of rows in the grid should not be relevant to this.

    Also, just to know to display a UI with 1 million rows is going to be practically unusable for any human user, even with filtering. It might be better to expose to the user some kind of data-fetching UI, where they can specify some search criteria and retrieve a sub-set of the data, rather than the entire set of data at once.

    Let me know if you have any question.

    Sincerely,
    Divya Jain

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
David Widerhorn
Favorites
0
Replies
1
Created On
Jun 02, 2020
Last Post
6 years, 5 months ago

Suggested Discussions

Created by

Created on

Jun 2, 2020 3:50 PM

Last activity on

Jun 2, 2020 3:50 PM