Skip to content
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

Possibly Improving Speed for Sort/Pages/Search? #14

Closed
markudevelop opened this issue Dec 13, 2014 · 2 comments
Closed

Possibly Improving Speed for Sort/Pages/Search? #14

markudevelop opened this issue Dec 13, 2014 · 2 comments

Comments

@markudevelop
Copy link

There is some kind of a "moment" loading if you change pages, sort or filter. After visiting all pages (So I get all subscription if I do console count) clicking quickly on next page you will see that delay or clicking on any sorting few times causes it to. And it happens with 20 or 500 records tables.

I have researched a little bit about datatables speed:

a) is it possible it's because of redraw of the rows? looking at: this stackoverflow question the draw() function defaults to true, setting it false can increase performance dramatically.

b) cached(client-side collection) are not being re-used? If I change to a page I just was in, reuse cached collection for the table can be really nice for performance, combined with "x" limit for first subscription can make first 5 pages load instantly. If you set limit for 100 and each page has 20 records.

The speed is not an issue right now, I just decided to post this as an improvement possibly for the future.

@aldeed
Copy link
Collaborator

aldeed commented Jan 17, 2015

1.0 is released. Can you retest on 1.0 and let me know if your concerns remain? For point b, note the new sub option described in the readme.

Please see updated README for all features and options.

@aldeed
Copy link
Collaborator

aldeed commented Jan 20, 2015

Created #47 for the preloading idea. Otherwise I think there's nothing left to resolve here, so closing.

@aldeed aldeed closed this as completed Jan 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants