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 does session start do in php?

750


How can I use single quotes in single quotes in php?

696


What is difference between strstr() and stristr()?

727


What are the differences between php constants and variables?

749


What is difference between explode() or split() in PHP?

720


Tell me which programming language does php resemble to?

726


What is isset function in php?

867


What are some new features introduced in php7?

8593


Is key exist in array php?

769


What is the maximum size of a database in mysql?

759


What are php magic quotes?

705


What is reference variable php?

757


What is associative array in php?

774


Is php 7.0 stable?

712


Tell me can you extend a final defined class?

747