SQL Server Full Text Search Performance

孤者浪人 提交于 2019-12-25 03:24:29

问题


I have an Ecommerce/Online Shopping site with around 2 million items(MS SQL Server DB). It has various products and i want to implement a search functionality for it. The search could be anything like "White shirt" , "Black Shoes", "Leather Belt" so on.

Please advise me about the performance of full text search and what are the pros/cons to using this.

Currently my database sometimes using 50% to 60% CPU. Does full text search helps me to reduce this?


回答1:


Actually, Full-Text Search (index) is better than just the non-clustered / clustered index in your case coz SQL Server able to use much more effective algorithms of search so it reduces consumption of RAM coz most of the operations performs there. My experience isn't able to estimate properly CPU usage but it seems to me that Full-Text Search affects CPU poorly. So this doesn't resolve CPU performance issue.

Also, check that IsFullTextInstalled was installed:

SELECT SERVERPROPERTY('IsFullTextInstalled');

Documentation: https://docs.microsoft.com/en-us/sql/relational-databases/search/full-text-search?view=sql-server-2017



来源:https://stackoverflow.com/questions/51555709/sql-server-full-text-search-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!