looking to understand if anything can be done to make the query below performant on a large graph. I'm trying to find the shortest path between two nodes but exclude paths that include certain other kinds of nodes. The issue seems to be the WHERE clause. The query below just completely grinds to a halt.
MATCH p=shortestPath((p1:Party{suprRC:"21"})-[*..15]-(p2:Party{suprRC:"21"}))
WITH p
WHERE NONE(n in nodes(p) where labels(n) in [["Reporter"],["FirstName"],["LastName"]])
RETURN p limit 500;