[英]Number of affected rows while running FTS query
Recently we've encountered a strange phenomenon, we have an ordinary query in a FTS structure: 最近,我们遇到了一个奇怪的现象,我们在FTS结构中有一个普通的查询:
select top 50 from TABLE where contains (COLUMN, 'string*')
Although the query is written with top 50
phrase we still see in the rowcount column, at the profiler high number of affected rows. 尽管查询是使用
top 50
词组编写的,但我们仍然在rowcount列中看到,但在探查器中受影响的行数很高。
When we ran the query in yhe mgmt studio only relevant rows are returned. 当我们在mgmt studio中运行查询时,仅返回相关行。
Is this normal behavior of full test search? 这是完全测试搜索的正常行为吗?
Perhaps you have other operations in the same procedure? 也许您在同一过程中还有其他操作?
The RowCounts will include affected counts from other operations as well. RowCounts也将包括其他操作的受影响计数。 For example, the following will return 13 in the
SQL:BatchCompleted
event. 例如,以下内容将在
SQL:BatchCompleted
事件中返回13。 If you capture the SQL:StmtCompleted
event as well you'll the discrete counts in RowCounts prior to this 13 sum: 如果还捕获了
SQL:StmtCompleted
事件, SQL:StmtCompleted
的离散计数在这13个和之前:
declare @t table (i int)
insert into @t
select 1 union all
select 2 union all
select 3;
select top 5 *
from dbo.YourTable;
select top 5 *
from dbo.YourOtherTable;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.