java - JavaFx Tableview speed and sorting in Sql application -
i working on small, toy application expand knowledge java
javafx
, sql
. have mysql server in local network, able communicate , simple tableview can populated, sorted ... etc. data has shown user, no editing. nice , clean.
the problems:
there around 170 000 rows 10 col.,
chars
, display, seems rather hard in reasonable time. query done during startup , take around 1 1/2 min before can see table.also memory footprint enormous, application without populated tableview around 70 mb, data has 600-700 mb (the xml file used populate mysql 70 mb in size ... ) !
sorting slow, using stringproperty should give boost according to: javafx tableview sort slow how improve sort speed in java swing (if understood correctly) custom sort, did not try far.
my thoughts:
similar application design mobile, think adapter-pattern can fix these problems. hence, create oberservablelist
correct size of elements, populate limit of rows in beginning. when scrolling done (scroll wheel) list has updated new elements in advance via sql-queries
. should give me performance boost first problem. nice idea going if user going scroll done via scrollbar(click , drag down), skip entries, need information give user feedback scroll to. how fix ?
for sorting, use sql sorting methods, each sort performed on sql server , new oberservablelist created. before, amount of data loaded in first query.
if approach effect memory footprint, not sure.
your opinion: ideas reasonable , do-able in java
, javafx
? love hear ideas these problems.
thank you.
i found out jvx capable of providing lazy-loading function. should trick
Comments
Post a Comment