Welcome Guest, Not a member yet? Register   Sign In
large query number of rows issue solution patch
#6

[eluser]vijinho[/eluser]
ok i see what you mean.

what if you want to count data from fields selected from only one table? no it doesn't handle that situation.

in that case i'd need to rewrite the

// replace the fields list for something less complicated
$sql = 'SELECT COUNT(1) AS rows ' . strstr($sql, 'FROM');

as another query which executes a row count within the database on the results of what $sql contains

and once that's done, the problem of reading into memory to get the row count is solved, no?

v


Messages In This Thread
large query number of rows issue solution patch - by El Forum - 09-24-2007, 10:39 AM
large query number of rows issue solution patch - by El Forum - 09-24-2007, 11:54 PM
large query number of rows issue solution patch - by El Forum - 09-25-2007, 02:58 AM
large query number of rows issue solution patch - by El Forum - 09-25-2007, 05:25 AM
large query number of rows issue solution patch - by El Forum - 09-25-2007, 09:19 AM
large query number of rows issue solution patch - by El Forum - 09-25-2007, 04:58 PM
large query number of rows issue solution patch - by El Forum - 09-25-2007, 05:33 PM
large query number of rows issue solution patch - by El Forum - 12-30-2009, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB