Click here to Skip to main content
15,915,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using mysql. I need to search the information fron many tables.
For that, please let me know how to create index for all the tables?

UPDATE from OP (moved here from other place):
I want to search a particular column's values. For that purpose I use many tables and join them by using join queries and display the rows and columns related to my search.

My question is this: I have thousands of records in a MySQL database and when I click the search button the process slows down. For that purpose I want to use an index on the table.

Please let me know how to use an index on multiple tables to speed up the search process.
Thank you.
Posted
Updated 3-Mar-11 3:52am
v2

1 solution

Have a read of this article, it will help you

http://www.databasejournal.com/features/mysql/article.php/1382791/Optimizing-MySQL-Queries-and-Indexes.htm[^]

So, you need to check your SQL statements. Only then will you know what indexes you should be creating on what tables so that your search SQL is optimised correctly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900