Questions tagged [cypher-3.1]

50 questions
0
votes
0 answers

When importing a CSV file of 3 million data in Neo4j is there any way to create the 3 million ratios quickly?

These are the queries I use to load from .csv file: USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:///products.csv" AS row CREATE (:Product {id: row.idProduct, name: row.name, description: row.description, price: row.price, shipping_price:…
Claure
  • 55
  • 1
  • 1
  • 4
0
votes
0 answers

Neo4j cql optimization

Does this cql match p=(n)-[*0..6]-(m) where id(n)=487682 and id(m)= 487671 with p where ALL(x IN nodes(p) WHERE SINGLE(y IN nodes(p) WHERE x=y)) and all(x in nodes(p)[1..length(p)] where x.name='1444') and all(x in relationships(p) …
andy
  • 13
  • 4
0
votes
1 answer

Create a property index for all nodes in Cypher

I have 1 rule for my database. EVERYTHING must have an 'id'. Since this is my primary key field, I want to index it, but it seems the only way to create an index is to specify a label. So with this dataset CREATE…
Tezra
  • 8,463
  • 3
  • 31
  • 68
-1
votes
2 answers

how to create and update nodes and property using plain cypher query?

How do I create and update nodes and property using plain cypher query? Below is my query: MERGE (c:contact {guid : '500010'}) ON CREATE SET c.data_source = '1', c.guid = '500010', c.created = timestamp() ON MATCH SET c.lastUpdated =…
Amith.n
  • 1
  • 2
-1
votes
1 answer

How to get the first value of multiple arrays and store it in another array in neo4j?

I do have values like first = [1, 2] second = [2, 3] third = [1, 3] and I want to have [1,2,1] in neo4j?
Suman
  • 53
  • 7
1 2 3
4