sql server中的全文索引什么时候更新?
我在我的一个存储过程中使用全文搜索。在此之前(典型的示例将是几分钟),我将项目插入到具有全文索引且表中约有 350 万行的表中。问题是,当我尝试在上面提到的存储过程中查找该项目时,该项目不存在(或者搜索查询找不到它)。所以我猜测此时索引尚未更新。
问题是...可能是这种情况还是我的问题出在其他地方?
如果是... 全文索引什么时候更新?处理索引的时间是否取决于它所拥有的数据量?大约 400 万条记录通常需要多长时间?
我正在使用 SQL Server 2008。
I'm using a full-text search in one of my stored procedures. Prior to that (typical example would be several minutes) I'm inserting items into a table that has full-text index and some 3.5 million rows in the table. The thing is that the item does not exist(or the search query cannot find it) when I try to find it in the upper mentioned stored procedure. So I'm guessing that the index is still not updated at that point.
The question is...Could this even be the case or my problem is somewhere else?
If yes...
When does the full-text index update? Does the time to process the index depend on the amount of data that it has? How long would it typically need for about 4 million records?
I'm using SQL Server 2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止,我发现全文索引被“爬行”,并且实际上可能是在我的情况下索引尚未处理的情况。
例如,我们可以在
sys.fulltext_indexes
中检查这一点,如下所示:*请参阅
CREATE FULLTEXT INDEX
命令的CHANGE_TRACKING
选项。So far I found out that full text indexes are "crawled" and that this can actually be the case that the index is not yet processed in my situation.
We can for instance check this in
sys.fulltext_indexes
, as in:*See the
CHANGE_TRACKING
option for theCREATE FULLTEXT INDEX
command.