Hi Prathap,

Why don't just create a vertexes for non registered friends and mark them
as non registered. And when new user is registered just check if vertex for
him already exists and mark that vertex as registered.

In this way you could filter unregistered users whenever you don't want to
see them, and can avoid complex merge operations.

Is such approach possible in your data model?

Best regards,
Artem Orobets

* Orient Technologiesthe Company behind OrientDB*


2014-06-11 13:56 GMT+03:00 Prathap Reddy <[email protected]>:

> Thanks for the reply,
>
> For example when a user1 is registered he will upload his phonebook to be
> added as contacts, whoever is registered users in that phonebook they will
> be added to friends relation of user.
>
> But whoever is not registered will not be added as their records will be
> non existent.
>
> But when any of those unregistered users in the phonebook has registered
> later, then how can I push them as friends to user1.
>
> Before I was maintaining it in mySQL table and pushed them to friends list
> once they are registered using triggers. Now I am moving my entire system
> to orientDB and looking for best schema design for storing private and
> group messages, users and their relations. Could you please help me on
> this. This is very urgent for me.
>
>
>
> On Wednesday, June 11, 2014 3:01:02 PM UTC+5:30, Artem Orobets wrote:
>
>> Hi Prathap,
>>
>> Sorry, I'm not really understand what do you want to achieve. Could you
>> describe your data model and what manipulation do you want to do?
>>
>> Best regards,
>> Artem Orobets
>>
>> * Orient Technologiesthe Company behind OrientDB*
>>
>>
>> 2014-06-11 10:44 GMT+03:00 Prathap Reddy <[email protected]>:
>>
>>>  I have a whatsApp like chat application where users can upload
>>> contacts and they will be automatically added to contact list. So when a
>>> user upload his contacts it will add them all to his friends list. It works
>>> fine using vertex and edge concept. But For example a user who is not
>>> registered, but later registered as user, how can I add them automatically
>>> to previous user's contact list as the current user is after the previous
>>> user is registered.
>>>
>>> What I have in mind is maintaining unregistered contacts in separate DB
>>> and whenever user is registered add them to his contact list, but it will
>>> increase the DM operations.
>>>
>>> Please help me on this. I am struck with this.
>>>
>>> --
>>>
>>> ---
>>> 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.
>>>
>>
>>  --
>
> ---
> 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.
>

-- 

--- 
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