I have a table that stores about 10 million records (elements), each record is of type itemtype (this is a reference key to table types). On my site I have a search function based on full-text search, this was normal, but a few days ago my client wanted to show on the site not only all the elements, but also the types of elements.
I am trying to execute two parallel requests to different servers (one to the replicator and one to the main):
- the first request is the elements of the group itemtypeid (using full-text search) and the returned list itemtypeid
- second query - keywords for searching the database (full-text search)
on a web server, I aggregate the results of these queries and pop them into a web browser. Problem: the first request is not running as fast as I want :) (it is very slow), and after six (eight) months there will be more than 11 million elements, so the first request will be slower and slower.
Please show me the right way.
source
share