Yeah,
Try adding an index to idtxt, that should speed the query in your example.
Just keep adding indexes to columns commonly used in your where clause.
> Hi,
>
> I'm handling a database which has about 2 million records.
>
> When I execute a query such as: "select * from megasize where
> idtxt='hello';"
> It takes approximately 8 seconds to get the records...
> I've got a quite fast computer and I wondered if there was a way to increase
> the speed of the query and bring it to 2 or 3 seconds?
>
> If yes, please tell me how to do it...
>
> Regards,
>
> SK
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
--
--------------------------------------
Scott A. Gerhardt P.Geo.
Gerhardt Information Technologies
[EMAIL PROTECTED]
--------------------------------------
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php