Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Sorting on large data-set(Sorting performance)
Sorting on large data-set [message #1794726] Wed, 05 September 2018 15:38 Go to next message
chaitanya tangudu is currently offline chaitanya tanguduFriend
Messages: 10
Registered: July 2009
Junior Member
Sorting on NatTable with large set of data (10,000 rows) is slow. It hangs on to the UI thread for quite a bit to complete the operation.
Is there any better alternative to handle scenarios like this? Any ideas or leads are appreciated. Thanks in advance.
Re: Sorting on large data-set [message #1794742 is a reply to message #1794726] Wed, 05 September 2018 19:54 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
Are you using GlazedLists? The performance there should be quite good from my experience.
Re: Sorting on large data-set [message #1794855 is a reply to message #1794742] Fri, 07 September 2018 22:27 Go to previous messageGo to next message
chaitanya tangudu is currently offline chaitanya tanguduFriend
Messages: 10
Registered: July 2009
Junior Member
Hello Dirk, thank you very much for replying. Yes, we are using GlazedList. Here is more details of our use case. We have around 22K rows in that table.
If we sort without any group-by(s), it sorts with in a second.
But, if we add any group-by column (s), it does take considerable amount of time. The most of the time is consumed by glazedlists.groupBy.GroupByComparator.compare(). I don't see anyway to avoid it.
Can you please provide your input in this case? Any suggestion is highly helpful. Thanks again in advance.
Re: Sorting on large data-set [message #1794873 is a reply to message #1794855] Mon, 10 September 2018 05:12 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
a) What means "considerable time"?
b) Which version of NatTable are you using?
c) Do you use the groupBy summary feature?
d) Do you call GroupByDataLayer#initializeTreeComparator() with the correct values?
e) If you think there is an issue with the GroupByComparator you can exchange it with some custom comparator via GroupByDataLayer#setComparator() or contribute a fixed version with better performance.
Previous Topic:What is the best way to lock/unlock rows for editing
Next Topic:Release date
Goto Forum:
  


Current Time: Sun Sep 23 12:45:25 GMT 2018

Powered by FUDForum. Page generated in 0.01787 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top