需要搜索姓名,但没有自由文本索引
我需要在表中搜索姓名,但我们没有 FREETEXT
索引设置。由于表中数据量很大,这不再是一个选项。
我可以做其他选择吗?本质上我会考虑做:
SELECT *
FROM MyTable
WHERE FREETEXT(FirstName, @firstname)
任何想法或指示将不胜感激。
I have a need to search names in our table, but we don't have a FREETEXT
index setup. This isn't an option anymore due to the large amount of data in the table.
Is there any alternatives that I can do? Essentially I'd be looking at doing:
SELECT *
FROM MyTable
WHERE FREETEXT(FirstName, @firstname)
Any ideas or pointers would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有全文索引,那么您可能会考虑使用
但是它不能很好地扩展(线性,扫描所有行)。
而且您拥有“大量数据”,这意味着您确实应该拥有全文索引
Without full text indexes, then you'd maybe consider using
However it doesn't scale well (linearly, scan of all rows).
And you have a "large amount of data" which means you really should have full text indexes