From 58e87e4675e6255391e1b669cc44d7e73eaf8131 Mon Sep 17 00:00:00 2001 From: Andy Robbins Date: Wed, 27 Feb 2019 16:23:27 -0800 Subject: [PATCH] Increase performance of principals with dcsync rights pre-built query --- src/components/SearchContainer/Tabs/PrebuiltQueries.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchContainer/Tabs/PrebuiltQueries.json b/src/components/SearchContainer/Tabs/PrebuiltQueries.json index 4b792f5..1884c83 100644 --- a/src/components/SearchContainer/Tabs/PrebuiltQueries.json +++ b/src/components/SearchContainer/Tabs/PrebuiltQueries.json @@ -47,7 +47,7 @@ { "final": true, "query": - "MATCH p=(n1)-[:MemberOf|GetChanges*1..]->(u:Domain {name: {result}}) WITH p,n1 MATCH p2=(n1)-[:MemberOf|GetChangesAll*1..]->(u:Domain {name: {result}}) WITH p,p2 MATCH p3=(n2)-[:MemberOf|GenericAll|AllExtendedRights*1..]->(u:Domain {name: {result}}) RETURN p,p2,p3", + "MATCH (n1)-[:MemberOf|GetChanges*1..]->(u:Domain {name: {name}}) WITH n1,u MATCH (n1)-[:MemberOf|GetChangesAll*1..]->(u) WITH n1,u MATCH p = (n1)-[:MemberOf|GetChanges|GetChangesAll*1..]->(u) RETURN p", "allowCollapse": true, "endNode": "{}" }