is it possible to load and display millions of records in TableView with JavaFX and DataFX ?

151 views
Skip to first unread message

Oy Bruce

unread,
Feb 10, 2015, 11:23:05 AM2/10/15
to dataf...@googlegroups.com
for example, i have a table with millions of records, i'd like display them in TableVIew with JavaFX. but i think with so huge amount of records, TableView will perform very badly. high CPU usage and big memory consume. in QT Jambi ( java binding for QT4) TableView ( or something like that ) can work out this situation very perfectly:
1, first TableView ask how much records do you want to display. so i answer it with a very big number (such as 10,000,000)
2, TableView got this number, it knows how much rows it can display at that moment ( i think it computed by TableView's size), so it knows how many screens it has to represent, so its vertical scroll bar is very long.
3, but at a specific time only a viewport with limited area can be seen, right ? so TableView started to request records starting from #1 to #50 ( assume viewport can display only 50 records ). it do't request the remainder records at all ! when i scroll down, TableView start to request the records what it exactly needs again.
4, this pattern saves a lot of memories and only needs very low CPU usage.

can this be archived in TableView with JavaFX and DataFX ?
any suggestions will be appreciated !
Reply all
Reply to author
Forward
0 new messages