-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too long Server-side Pagination initial load #467
Comments
I'm having the same problem. Even with the ReactiveTable.publish the initial load takes so much time around of 5 or 6 seconds. |
Hey @geremora This problem appears because full collection is pulled from MongoDB (either by Client, or Server (with Server Side Pagination). So, I have found solution how to avoid such a long wait time and optimize overall performance. I have added custom filter fields for columns in the table which I use most often for filtering like
And only when user enters some text in this search field, I transform it to Mongo request format and use conditional Meteor subscription. Client:
Server
With such config you will have always not more than 300 records in your table that will be more than enough for further filtering using reactive-table functionality. Hope this will help. |
Thanks @naho2081! I thought that the ReactiveTable.publish not pull all of records :( Your solution looks good I'm going in that way. |
I had a same problem. the problem is issue with try to disable
also you can add full publish code would be like this:
|
for big data observeChanges should be disabled aslagle#467
I have a collection with 40K records and have configured Server-side Pagination:
As a result initial table load takes around 7-8 seconds on production server and generates table with 2K pages.
When initial load finished, navigation by pages works quickly and Filtering also works quickly.
When Filter is cleared table load time is again 7-8 seconds.
Questions:
In fact I don't need such a huge table with thousands of pages when no filter is applied.
It will be even enough to show initially empty table but with filter input shown. And only after any search query is entered in filter field table will be populated with data.
Any comments?
The text was updated successfully, but these errors were encountered: