The following query works and inserts 8000 nodes in 3 seconds
MATCH (n:Contact)--(:ActivityContact)--(ar:ActivityReport)
> WHERE ar.StartDateTime > timestamp()
>
> WITH DISTINCT n, COUNT(ar) AS val
> CREATE (s:ScoreFactor {
> name: "ContactActivities",
> value: val
> })
> CREATE (n)-[:HasScoreFactor]->(s)
However, if I define ANY variable like, the query runs unlimited and does
not insert any node at all.
I think this is a bug.
*WITH timestamp() AS cutoff*
> MATCH (n:Contact)--(:ActivityContact)--(ar:ActivityReport)
> WHERE ar.StartDateTime > cutoff
>
> WITH DISTINCT n, COUNT(ar) AS val
> CREATE (s:ScoreFactor {
> name: "ContactActivities",
> value: val
> })
> CREATE (n)-[:HasScoreFactor]->(s)
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.