Thanks, your reply really helped! It took me a while to get to the point 
where I could understand it, but it was worth it.

terça-feira, 12 de Maio de 2015 às 14:09:55 UTC+1, Matus Zeman escreveu:
>
> I'm not expert in OrientDB and it's just my personal experimentation, 
> ideas. Nothing what you should consider being correct solution. It might be 
> interesting to know what others think too.
>
> What about these solutions?
>
> 1. Let your edge extend ORestricted and create two edges for each OUser. 
> Each edge would be readable (_allow, _allowRead) to this one specific user 
> only.
>
> 2. Create a hook which would create a map of values for each specific 
> user. I don't really know what performance implication this might cause. 
> "onRecordBeforeCreate" would take "x" property and store this value it into 
> map "_x" property where key = current user RID and "onRecordAfterRead" 
> would check if there is x value for current user in "_x" map and sets "x" 
> property if so.
>
> What do you think?
>
>
>
> On Tuesday, 12 May 2015 12:25:01 UTC+2, David de Sousa Seixas wrote:
>>
>> So to each edge I want to add two properties. Now one is the same 
>> regardless of the user, and other one is specific to each user. For 
>> example, the link from A to B contains w=0.1 and x=1 for David and w=0.1 
>> and x=0 for John.
>>
>> terça-feira, 12 de Maio de 2015 às 11:04:45 UTC+1, Matus Zeman escreveu:
>>>
>>> I'm not sure what you mean.
>>> But if you want to create an edge with some properties you should avoid 
>>> Lightweight edges.
>>>
>>> http://orientdb.com/docs/last/Lightweight-Edges.html
>>> http://orientdb.com/docs/last/SQL-Create-Edge.html
>>>
>>> Matus
>>>
>>>
>>> On Monday, 11 May 2015 23:02:13 UTC+2, David de Sousa Seixas wrote:
>>>>
>>>> Hi
>>>>
>>>> I need to make edges that contain two values (each): one which is the 
>>>> same for all users and one which is different for each one. How can I do 
>>>> that?
>>>>
>>>> cheers
>>>>
>>>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to