Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation/Bookmark Lookup/Constant Scan

Status
Not open for further replies.

dusanv

Programmer
May 29, 2002
20
0
0
Our custom application is running very inefficiently on the SQL server. After doing execution traces, we found the following trace as the most expensive (always the same trace but with different parameters):

Execution Tree
--------------
Top(1)
|--Concatenation
|--Filter(WHERE:([Employee].[EmpID]=[@Param1003]))
| |--Bookmark Lookup(BOOKMARK:([@Param1002]), OBJECT:([RPWBSDB].[dbo].[Employee]))
| |--Constant Scan
|--Bookmark Lookup(BOOKMARK:([Bmk1000]), OBJECT:([RPWBSDB].[dbo].[Employee]))
|--Index Seek(OBJECT:([RPWBSDB].[dbo].[Employee].[ixEmpID]), SEEK:([Employee].[EmpID]=[@Param1003]) ORDERED FORWARD)

The common keywords to all this bad traces are Concatenate, Bookmark Lookup, and Constant Scan. Does anyone see something that jumps out as really bad in this trace? If so, what can be done to avoid them?

Thanks in advance for any help/suggestions!

Dusan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top