How can we optimize or increase the speed of a mysql select
query?

Answer Posted / shanmuga

Using Proper Index.
Using LIMIT
using Primary KEy.

Important : Whenever the huge no of updation or deletion
happened in that table use OPTIMIZE TABLE command.This will
reduce the unused space.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between php and cakephp?

732


Is python similar to php?

782


Explain preg_Match and preg_replace?

757


What is the purpose of $_ session?

704


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1733


Tell me how comfortable are you with writing html entirely by hand?

711


What is an associative array?

745


Do loops php?

752


What is phpsessid?

717


How to convert strings to upper or lower cases?

774


What enctype is required for file uploads to work?

731


What is a session in php?

747


In php, how to redirect from one page to another page?

703


Which parts of php are case sensitive?

691


What is the difference between static and dynamic websites?

716