I am a recent fan of orientdb and using it to create a wonderful product. 
Let me describe my problem

Problem: The software will have many configuration settings done either by 
user or by admin at a global level. 
I am thinking of using graph feature to solve this e.g. store settings as 
following graph

- screen1 ----edge "admin" ---> field1 ---edge 'admin'---> color = blue
- screen1 ----edge "admin" ---> field1 ---edge 'steve'---> color = green

I want to execute following logic to load a setting
find if user has set his preference, if so load it, if not, load admin's 
preference

in other words, 
check a path1, if value exists return that value, if the path does not 
exist, check another path.
I could do it as firing two queries, but that gets expensive very quickly.

Questions: 
Is there a better way of doing it?
If not, how can I fire one query to do "check one path, if not check 
another"?

thanks
Ravi


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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.

Reply via email to