Hi,

I have a big query that involves searching in more tables, and I think this
might be slower than creating more smaller queries. What do you think, is
this true generally?

The query searches in a big table but it also counts the number of records
from other 2 tables based on a criteria, and usually the result is a big
number of records, but the final result is limited using "limit 0,30".

So I am wondering...
Could it work faster if I won't count(*) the number of records in those 2
tables, but get the result (only 30 records), then for each separate record
use a separate query that gets that number?

I don't know, could 31 queries work faster than a single bigger and complex
query?

Thank you.

Teddy



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to