bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
636 stars 290 forks source link

virtual scroll to support more than 10 million records #989

Closed Haugpro closed 5 months ago

Haugpro commented 7 months ago

currently pluto_grid is not really usable with a million PlutoRows. Instead of attaching a prefilled List to the grids 'rows' property I'd like to provide a function like 'PlutoRow rowOfIndex( int index)' and a new 'rowCount' that will be set to the maximum of the original dataset. I do not ask for infinite scrolling, the max. number of rows is known in advance so that the scrollbar can reflect that size correctly. Reason: I have large log-files locally (on desktop) containing about 50 million records in binary format. There is no problem loading that binary file, but it is impossible (or at least unusable) to create a List containing all the records and assign that to pluto_grid. With flutters ListView.builder function this is quite easy possible and performant, since only the list items are created, that are currently in the view. But having this with pluto_grid would save a lot of datagrid related work. Maybe there is a way already to do virtual scrolling in that sense or it is easy to implement? Thank you

doonfrs commented 6 months ago

I think you need to implement pagination outside plutogrid

Haugpro commented 6 months ago

thanks for your comment. But pagination is not a solution since fluent scrolling through all the records is required. Maybe there is another idea

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.