更新时间:2023-11-25 23:35:40
您可能想通过利用cypher的收集功能来使用WHERE ... IN. 此处是相关参考
You may want to use WHERE...IN by exploiting the collection functionality of cypher. Here's the relevant reference
因此您的查询可能如下所示:
So your query might look like this:
MATCH (user:User)
WHERE user.id_str IN ["100001", "100002", "100003"]
return user;
现在,我不知道一个集合有多大.我怀疑如果您的收藏夹中有1,000件物品,这是否可行.但这至少是将它们分批处理的一种方法.这样可以提高性能.
Now, I don't know how large a collection can be. I doubt this would work if your collection had 1,000 items in it. But at least this is a way of batching them up into chunks. This should improve performance.
还可以查看 Cypher 2.0 refcard