WITH [8521,8522,8519] as place_ids
MATCH (place:Location)-[:VISITED_BY]->(user:User)
where place.id in place_ids
WITH collect(distinct user) as users
return users
This query runs for 1.2 s for 3 place_ids places ids can grow up-to 20 with different c...