Hi,
We are experiencing a database performance issue. According to the DBA, is that the top performance impact statements related to Laserfiche and is using a lot of resources. They have identified the query that is making this impact and is as shown below.
/* (comment inserted by DPA)
Character Range: 17 to 327
Waiting on statement:
INSERT
INTO #tempresult
(
tocid,
rsid,
hitcount,
parentid,
etype,
acl_tocid,
vol_id,
path
)
SELECT tocid,
@P1 rsid,
0 hitcount,
parentid,
etype,
acl_tocid,
vol_id,
'' path
FROM
(
SELECT toc.name displayname,
toc.*
FROM toc
)
toc
WHERE (1=1
AND tocid <> 2
AND del_tocid = 0 )
AND ((etype = -2
AND pagecount > @P2))
*/
(@P1 int,@P2 int)
/* BEGIN ACTIVE SECTION (comment inserted by DPA) */
INSERT
INTO #tempresult
(
tocid,
rsid,
hitcount,
parentid,
etype,
acl_tocid,
vol_id,
path
)
SELECT tocid,
@P1 rsid,
0 hitcount,
parentid,
etype,
acl_tocid,
vol_id,
'' path
FROM
(
SELECT toc.name displayname,
toc.*
FROM toc
)
toc
WHERE (1=1
AND tocid <> 2
AND del_tocid = 0 )
AND ((etype = -2
AND pagecount > @P2))
/* END ACTIVE SECTION (comment inserted by DPA) */
Any ideas what this quesry is for?
Mark