database - Orientdb SQL query to check edge properties -
i have graph database 3 simple vertex types, user, device , sensor. relationship goes as,
edges: userhasdevices, devicehassensors
each edge has property name "isdeleted". when deleting vertex, don't make deleted permanently make "isdeleted" property of edge "true". please let me know how query list of deleted sensors, , / or deleted list of devices, belongs particular user, identified user id.
to filter edges property, can use oute('edgename') , put conditions in brackets. supposed work according understanding :
select expand(oute('userhasdevices')[isdeleted = true].inv()) #13:12 in question, asker says doesn't work.
i found way this. can expand edges. :
select expand(in) userhasdevices isdeleted = true , out = #13:12 but don't think best ideal store property in edge performance wise. best thing have edge contains "isdeleted" vertices. simpler , allow have smaller query execution time. eliminate need filter edge property.
Comments
Post a Comment