I have a database with 34 labels and i'm using that labels to add properties based on groups.
MATCH (x:FST) set x:GRPONE; MATCH (x:SND) set x:GRPONE; ... MATCH (x:TRD) set x:GRPTWO; ... MATCH (x:FRD) set x:GRPTHREE; ... MATCH (x:GRPONE)-[*]->(:GROUPTWO)<--(:GRPTHREE) SET x.importantPropertie=1;
(the match to set properties sometimes involves counting other properties, relation properties, and more)
Is there any way to create index based on labels (and not properties) to prevent NodeByLabel on matches?
I'm trying another version of my script using a property instead of labels but I can't create (and remove) an index on ALL labels. Is that possible?
Thanks in advance
Regards Juan Pablo