MikeNGarrett / rcm

Provide a way for volunteers to create and update rescue cases.
Other
5 stars 7 forks source link

DataTables pages need all posts #29

Open wass3r opened 11 years ago

wass3r commented 11 years ago

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 commented 11 years ago

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 commented 10 years ago

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

wass3r commented 10 years ago

I'll try to look at this tonight

wass3r commented 10 years ago

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 https://github.com/MikeNGarrett/rcm/issues/35 also.