Welcome Guest, Not a member yet? Register   Sign In
Change the paginate method
#2

Paginate acts as findAll with auto applied limit + offset and prepared Pager..

I think that logically countAllResults(false) should preserve the count once it's done and just to return it instead making multiple selects further..
https://github.com/codeigniter4/CodeIgni....php#L1566
Running that query multiple times in case $sql and $this->binds are the same is pointless specially if $reset is set to false..
Best VPS Hosting : Digital Ocean
Reply


Messages In This Thread
Change the paginate method - by videoproc - 05-25-2019, 02:10 AM
RE: Change the paginate method - by sv3tli0 - 05-29-2019, 10:22 PM
RE: Change the paginate method - by videoproc - 05-30-2019, 11:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB