Feature #13180
openAlternative to WTableView with infinite scrolling
0%
Description
There are currently two ways to show tabular data in Wt. The first being a WTable, which is fairly customizable, but doesn't take any WAbstractItemModels.
There is also WTableView which can make use of an item model.
If developers wish to show data they have in a database, they can make use of the QueryModel. This will execute a count query on the query, and then calculate the height of the scroll bar. Each batch of items can then be loaded on demand, so that the table itself is more performant, instead of eagerly loading all data. While this is an improvement upon loading all data initially, this still restricts developers in the way that it requires a count query. Now, count queries are fairly costly, as their cost grows proportional to the table's size. In very large tables, a count query can be very detrimental.
A new view on a QueryModel
ought to be offered, WInfiniteTableView
(name very much subject to change) will avoid this count query, and append results to the view upon scrolling.
Ideally this will also make use of a table
element, and not custom div
s (like WTableView
) so that custom styling is easier to apply.
Updated by Matthias Van Ceulebroeck 17 days ago
- Related to Improvements #12117: Allow count query alternative added