Welcome Guest, Not a member yet? Register   Sign In
Why does paginate call the database twice?
#3

[eluser]gh0st[/eluser]
I thought you had to do the query (regardless of complexity) twice to get the right number of rows back?

Let's say you had a complex query involving some INNER JOIN's... don't you have to do a num_rows on the INNER JOINed query so that you get the correct number of records?

Or.. perhaps you have a complex, filtered query (with no INNER JOINs, etc), don't you still need to do a num_rows on the complex query, so that you get the correct number of records?

Thanks


Messages In This Thread
Why does paginate call the database twice? - by El Forum - 02-08-2009, 11:44 AM
Why does paginate call the database twice? - by El Forum - 02-08-2009, 12:16 PM
Why does paginate call the database twice? - by El Forum - 02-08-2009, 01:48 PM
Why does paginate call the database twice? - by El Forum - 02-08-2009, 02:03 PM
Why does paginate call the database twice? - by El Forum - 02-08-2009, 02:20 PM
Why does paginate call the database twice? - by El Forum - 06-03-2009, 09:00 AM
Why does paginate call the database twice? - by El Forum - 06-03-2009, 10:01 AM
Why does paginate call the database twice? - by El Forum - 06-03-2009, 10:08 AM
Why does paginate call the database twice? - by El Forum - 06-03-2009, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB