有没有办法在SQL Server 2008中加速以下包含稳定的查询。数据库有600,000条记录,查询需要2秒。我需要使用分页查询。其他不涉及containsstable的查询更快。相关性搜索似乎很昂贵。有什么办法在SQL Server 2008中改进这个?
WITH RowsTable AS
(
SELECT (ROW_NUMBER() OVER (ORDER BY ct.[RANK] DESC)) AS RowNum, e.*
FROM CONTAINSTABLE ([Web.ProductDB], title, 'dell') As ct
JOIN [WebCMS.Product] As e ON ct.[KEY] = e.ID
WHERE (ct.[RANK] > 0)
)
SELECT title,Manufacturer,DescpTop
FROM RowsTable
WHERE (RowNum >= 1) AND (RowNum < 21)
理想情况下,我希望性能不到1秒。感谢。