note
converter
<p>
Are you using indices, and if so, are you certain that the database is doing index scans instead of sequential scans in your query? Before you give up on MySQL and try to solve the problem with Perl, you should have a look at the EXPLAIN and ANALYZE statements.
</p>
<p>
Since you didn't mention which version of MySQL you're using, I'll take a guess and include [href:http://dev.mysql.com/doc/refman/4.1/en/explain.html|Optimizing Queries with EXPLAIN] for versions 3.23 through 4.1.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-17361">
<p>
[converter]
</p>
</div></div>
528005
528005