Skip to content
Advertisement

Tag: pagination

CodeIgniter count too slow – pagination

I’m trying to make a search using CodeIgniter faster. I use the pagination library and I have to count the records returned from the query on a table which contains more than 1.2 million records. The num_rows() function is very slow ( takes approximately 3 seconds ) Any solutions? Answer As the comments from @MonkeyZeus suggests, performance will improve by

Custom pagination view in Laravel 5

Laravel 4.2 has the option to specify a custom view in app/config/view.php such as: This is gone in Laravel 5 at least regarding view.php. Is there a way to replicate this behavior in Laravel 5? Answer Whereas in Laravel 4.2 I would use: In Laravel 5 you can replicate the above with the following: Now in the included view, $object

Advertisement