PRB: Nested Loop Join That Uses A "BOOKMARK LOOKUP ...WITH PREFETCH" May Hold Locks Longer (260652)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q260652 SYMPTOMS
If an execution plan uses a Nested loop join and a bookmark lookup, which uses the WITH PREFETCH clause, the locks are held for the duration of the nested loop joins determining the qualifying bookmarks. After the bookmark is used to fetch the outstanding column data and that data is placed in the output buffer, the lock is then released. This behavior may lead to the blocking of other system process ids (spids).
WORKAROUND
If you change the join hint from LOOP to either HASH or MERGE, the blocking does not occur.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbpending kbprb KB260652 |
---|
|