« Return to Thread: How to update GL eventlist from database?

How to update GL eventlist from database?

by philk :: Rate this Message:

Reply to Author | View in Thread

Hello,

I am struggling with updating my EventList with data from a database. I do full table updates with the result set from the DB query like this:
GlazedLists.replaceAllSorted(items, getDBResult(), true, null);

All items are Comparable. However the update of the list is kind of akward. The UI refreshes very slowly. I will make a video of it later. Maybe its a threading issue? I am using a thread-safe base list for my items. Maybe I should manually lock and unlock the table?

Do you have any recommendations on how to do full table updates using DB results?

Thanks!

 « Return to Thread: How to update GL eventlist from database?