cypher - Match node with multiple properties in neo4j -


i'm having troubles current data model , wondering if suggest better way structure data. nodes labelled 'person' have 5-10 properties each like: name, address, nationality, phone, age... , there no unique property use index.

since don't want duplicates, every time create new person use merge instead create. problem doing merge i'm matching 5-10 properties on node slows down queries enormously.

so taking out properties in each person node separate nodes labeled address, nationality, phone, age performance of merge query? other possible solutions?

thanks in advance!

how generating guid/uuid that's unique each person , using id each person? merge on property , use on create set other properties e.g.

merge (p:person {id: 'abcd-efgh-...'}) on create set p.name = "mark", p.address = "..." 

or if not maybe hash or combination of properties key e.g.

merge (p:person {id: "name-address-nationality-phone"}) on create set p.name = "...", p.address =  "..." 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -