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!

question on Open text query on DTreeACL

Status
Not open for further replies.

DBA_OT

Technical User
Aug 17, 2020
1
0
0
AU
hi

a query similar to below is running on our SQL database very often (some times up to 10 times a minute) and it's returning somewhere between 300K -900K records in various runs.

Has anyone seen this query and is it normal for it to run this often? thin many records? any help is really appriciated.
we are on SQL 2016

SELECT DataID,Permissions FROM DTreeACL
WHERE DataID IN (SELECT DataID FROM DTree WHERE ParentID=@P1)
AND (RightID IN ( SELECT KUAFRightsListNew.RLRightID FROM KUAFRightsListNew WHERE KUAFRightsListNew.RLID=XXXXXXXXXX AND KUAFRightsListNew.RLProxyType=0 ) ) ORDER BY DataID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top