You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I implement infinite scroll example on a big dataset the page starts to slow down and use a lot of memory, eventually completely freezing.
Describe the solution you'd like
It should behave like pagination, where only a couple of pages are loaded into memory and those pages represent current window that user can or could see. readPage is callback with params like from, to or pageNumber, should return list of records.
When initialized has no records but has totalRecords, calls readPage() to get records for the first page.
When user is close to the bottom of the window it should call the readPage() to get new page.
Describe alternatives you've considered
make records not actual records but ids of those records, i.e. string[]. getRecordsByIds callback which accepts ids: string[] parameter and returns the records in batches.
otherwise logic is similar to the variant above
Additional context
I'm using OPFS to store and get a lot of records from virtual file storage in browser and I want to see how far it could go in terms of how smooth the experience is.
The text was updated successfully, but these errors were encountered:
@sliterok unfortunately I don't have the time to consider this, but I'm open to discuss a PR if you fee like it.
@isnifer - if I remember correctly, the column toggling / resizing feature was added in 7.3 (see #483), so a certain performance cost is expected, but I haven't seen anything like the figures you posted above in my apps.
In fact, in production, on Brave, what I'm typically seeing in terms of memory consumption is 100MB — 150MB...
Is your feature request related to a problem? Please describe.
When I implement infinite scroll example on a big dataset the page starts to slow down and use a lot of memory, eventually completely freezing.
Describe the solution you'd like
It should behave like pagination, where only a couple of pages are loaded into memory and those pages represent current window that user can or could see.
readPage
is callback with params likefrom, to
orpageNumber
, should return list of records.When initialized has no
records
but hastotalRecords
, callsreadPage()
to get records for the first page.When user is close to the bottom of the window it should call the
readPage()
to get new page.Describe alternatives you've considered
make
records
not actual records but ids of those records, i.e.string[]
.getRecordsByIds
callback which acceptsids: string[]
parameter and returns the records in batches.otherwise logic is similar to the variant above
Additional context
I'm using OPFS to store and get a lot of records from virtual file storage in browser and I want to see how far it could go in terms of how smooth the experience is.
The text was updated successfully, but these errors were encountered: