Hello,
Just a little question. I'm creating an online catalog and there is a category that returns me about 140.000 entries.
It is a relational query, I've already created indexes, but it takes a long time to execute the sentence.
Is there a way to increase the speed of the query? It currently takes about 40 seconds!
Here is the one I use:
SELECT TABLE1.FIELD1, TABLE1.FIELD2, TABLE1.FIELD1, TABLE2.FIELD1 FROM TABLE1, TABLE2 WHERE TABLE1.FIELD5='%s' AND TABLE2.FIELDINDEX=TABLE1.FILEINDEX GROUP BY TABLE1.FIELD1 ASC",$varQUERY);
$query_limit_rsQUERY = sprintf("%s LIMIT %d, %d", $query_rsQUERY, $startRow_rsQUERY, $maxRows_rsQUERY);
Thanks a lot!
NArcís