Answer the question
In order to leave comments, you need to log in
Company directory: how to optimize search?
Good day.
I need to make a website - a directory of companies (PHP, MySQL). The main function of the site is to search for companies. There is one field where the user can enter the name / category / phone / skype / company website, etc. and start searching. The system searches the database for suitable companies and displays them. The problem is that there are several related tables and a fairly large amount of information (more than 300 thousand companies). I have never dealt with such projects and would like to ask experienced programmers for advice: how to optimize the search and make it fast?
Thanks a lot.
Answer the question
In order to leave comments, you need to log in
Correctly set up indexes and relationships between tables (secondary keys).
I think you know how to make requests?
Thank you, I will dig in this direction. Already installed a sphinx on the dev machine and somehow managed to get the search result using phpapi.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question