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

DataTables pages need all posts #29

Open
wass3r opened this issue Nov 17, 2013 · 4 comments
Open

DataTables pages need all posts #29

wass3r opened this issue Nov 17, 2013 · 4 comments
Labels

Comments

@wass3r
Copy link
Collaborator

wass3r commented Nov 17, 2013

on all the pages where we have DataTables, we need to feed it all posts, since it has it's own pagination. Currently it will feed 10 posts into DataTables, even if you have 200 and pagination doesn't work because the loop stops at 10.

I guess there are two options, feed DataTables all posts, or hook up the DataTables pagination with the loop query to fetch the next results (won't be as fast and printing all records will be more painful).

Not sure what the performance would be like feeding all data on the main page either.

To replicate, create > 10 posts.

@MikeNGarrett
Copy link
Owner

Maybe we could do a combination of the two? Load in 50-100 posts (fairly fast) and hook in the pagination to an ajax call that will go get more. That way we cover a large number of visitor's use cases without bogging down the server or providing too few cases and needing to wait on ajax calls too often.

@MikeNGarrett
Copy link
Owner

Increased lookup to 50 records. We still need to look at adding ajax calls for pagination.

@wass3r
Copy link
Collaborator Author

wass3r commented Nov 26, 2013

I'll try to look at this tonight

@wass3r
Copy link
Collaborator Author

wass3r commented Nov 26, 2013

How do we want to handle printing this thing? You just print what you see? Will there be a page to display all "cases", although that may be overkill? I created #35 also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants