There are two Tutorials that you should look at.
HTH
In reply to Re: DBI speed up needed on MySQL by dbwiz in thread DBI speed up needed on MySQL by jacques