Hello,
approx. how long does it take your "big" query to run as it is now?  Are
these queries appending a table? or are they buiding a result (from a
"chain" of queries)?  Have you tried separating them out?  Any difference?
-sam


> 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]
>
>


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

Reply via email to