GeekInterview.com
Series: Subject: Topic:
Question: 10 of 58

Using Table Index

Is it required to use Index when the MySQL table has only 100 rows? Justify your answer
Asked by: nagaphp_indore | Member Since Nov-2008 | Asked on: Apr 10th, 2009

View all questions by nagaphp_indore

Showing Answers 1 - 5 of 5 Answers
vishnu2004k

Answered On : May 13th, 2009

View all answers by vishnu2004k

If table has primary key than no need of creation of index for that table

Yes  3 Users have rated as useful.
  
Login to rate this answer.

For 100 rows may be no need to use the index. If a table having huge number of records with table fields also having more, that time indexing is needed to execute the query fast and reliable.

Yes  4 Users have rated as useful.
  
Login to rate this answer.

Index is needed when data volumes increases. For less records, index is not required. Indexes enables the database retrieve and present to the end-user with ease.

  
Login to rate this answer.

Index is a database structure which stores column value in order and pointer to the row containing this value.During query execution index is used to fast search column data used in where condition.

If table has less no of columns but one primary key then no need of index. Clustered index is automatically created for primary key.

If table has less no of columns and no primary key then index is needed.

If table has more no. of columns then index is needed.

Please let me know if any further doubt.

Thanks.

  
Login to rate this answer.

Hi,

Index is used to speed up query.

If particular column is used often in queries and table has lot of data.Then it is recommended to create index for that column of the table. It will speed up the query.

If you create primary key clustered index is automatically created on that column.


If you need any further assistance or discussion please mail me at altafhsayyed@yahoo.com

Thanks and regards

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.