sql server全文索引延迟

发布于 2024-12-27 10:12:36 字数 136 浏览 2 评论 0原文

更新 sql server 中的全文索引存在延迟。

所以它引发了一些问题。

我需要知道全文索引处理的最后一个项目,以便我可以在搜索中找到它。

我怎样才能获得sql server中全文索引处理的最后一项主键id。

there is a delay in updating the full text index in sql server.

so it raises some problems.

I need to know the last item processed by full text index so i could find it in a search.

how can i get the last item primary key id processed by full text index in sql server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

想你的星星会说话 2025-01-03 10:12:36

我不认为在任何地方都可以保证索引将以任何特定顺序(例如 PK 或聚集索引)构建/填充。

如果您需要知道特定行已添加到索引中,我唯一能想到做的事情(除了等待所有索引活动停止之外)就是将唯一值存储在另一列中,然后继续查询索引直到出现该行的唯一值。

I don't believe that there's a guarantee anywhere that the index will be built/populated in any specific order (e.g. PK or clustered index).

If you need to know that a specific row has been added to the index, the only thing I can think to do (other than waiting for all indexing activity to cease) is to store unique values in another column, and then keep querying the index until the unique value for your row appears.

胡渣熟男 2025-01-03 10:12:36
SCOPE_IDENTITY()

返回插入同一范围内标识列的最后一个标识值。

http://msdn.microsoft.com/en-us/library/ms190315.aspx

SCOPE_IDENTITY()

Returns the last identity value inserted into an identity column in the same scope.

http://msdn.microsoft.com/en-us/library/ms190315.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文