Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Need suggestion on data model
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gokulakanna balakrishnan  
View profile  
 More options May 29 2012, 12:24 pm
From: gokulakanna balakrishnan <gokulbala1...@gmail.com>
Date: Tue, 29 May 2012 09:24:39 -0700 (PDT)
Local: Tues, May 29 2012 12:24 pm
Subject: Need suggestion on data model
Hi All,

    In my application there are message sent from one user to another
user in the system. Users are maintained user node.
And each message are held in message node. I want to track the
messages sent and reply togather.
I am creating relationship following way.  Please suggest me my data
model is correct or not.

     USER_MESSAGE                                      SENT_AND_REPLAY
User----------------MessageS(Bi-direction relationship)----------------

>ConversationMessage

Please suggest me my data model is correct or not.

Thanks & Regards,
Gokul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Albertson  
View profile   Translate to Translated (View Original)
 More options May 29 2012, 12:46 pm
From: Chris Albertson <albertson.ch...@gmail.com>
Date: Tue, 29 May 2012 09:46:01 -0700
Local: Tues, May 29 2012 12:46 pm
Subject: Re: [Neo4j] Need suggestion on data model

Maybe more simple is to have the users be nodes the the messages are the
edges that pint to sender to receiver.  I think this is more natural.
 Thisnk of it as saying that "users are related by the =messages they sand
to each other."

On Tue, May 29, 2012 at 9:24 AM, gokulakanna balakrishnan <

--

Chris Albertson
Redondo Beach, California


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gokulakanna balakrishnan  
View profile   Translate to Translated (View Original)
 More options May 29 2012, 1:51 pm
From: gokulakanna balakrishnan <gokulbala1...@gmail.com>
Date: Tue, 29 May 2012 23:21:46 +0530
Local: Tues, May 29 2012 1:51 pm
Subject: Re: [Neo4j] Need suggestion on data model
Hi,
                                                           outgoing
  User A sent message to user B  UserA-------->Message

                                                             incoming
  User B will receive the message. UserB<------Message(attaching)

                                                   outgoing
  User B replied to User A : UserB------>Message

   If user B replied to A is message. New message object will be
created. how to maintain sequence between those messages(conversation
between A and B) in neo4j.

Thanks & Regards,
Gokul

On Tue, May 29, 2012 at 10:16 PM, Chris Albertson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gokulakanna balakrishnan  
View profile   Translate to Translated (View Original)
 More options May 29 2012, 2:55 pm
From: gokulakanna balakrishnan <gokulbala1...@gmail.com>
Date: Wed, 30 May 2012 00:25:29 +0530
Local: Tues, May 29 2012 2:55 pm
Subject: Re: [Neo4j] Need suggestion on data model
Hi All,

     Currently I am working on this model. Please help me create data
model for this kind of scenario.

Thanks & Regards,
Gokul

On Tue, May 29, 2012 at 11:21 PM, gokulakanna balakrishnan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile   Translate to Translated (View Original)
 More options May 29 2012, 7:19 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Wed, 30 May 2012 01:19:31 +0200
Local: Tues, May 29 2012 7:19 pm
Subject: Re: [Neo4j] Need suggestion on data model
The simplest would be to use a timestamp and use that ordering.

Michael

Am 29.05.2012 um 19:51 schrieb gokulakanna balakrishnan:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Albertson  
View profile   Translate to Translated (View Original)
 More options May 29 2012, 9:02 pm
From: Chris Albertson <albertson.ch...@gmail.com>
Date: Tue, 29 May 2012 18:02:50 -0700
Local: Tues, May 29 2012 9:02 pm
Subject: Re: [Neo4j] Need suggestion on data model

On Tue, May 29, 2012 at 4:19 PM, Michael Hunger <

michael.hun...@neotechnology.com> wrote:
> .
> >   If user B replied to A is message. New message object will be
> > created. how to maintain sequence between those messages

Look at the email headers.  You will find that most of them already have a
line that starts "In-Reply-To:" and then has a message ID.

What you really should do is use this existing email headers.   The chain
of "in-reply-to" pointers will do what you want

Likewise if filing measles there are other headers, like sender to "to"
 that would make idea links

Chris Albertson
Redondo Beach, California


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Duane Nickull  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 1:58 am
From: Duane Nickull <du...@uberity.com>
Date: Wed, 30 May 2012 05:58:51 +0000
Local: Wed, May 30 2012 1:58 am
Subject: Re: [Neo4j] Need suggestion on data model

There are a few things that may affect this.  Are the messages
asynchronous or synchronous?  Are there reliable messaging mechanisms
built into the exchange?  For example,
A-[sends_message]->B get through
A-[sends_message]->B but it gets lost in cyberspace.
B-[sends_message]->A and it gets through // replying to message one
A-[sends_message]->B which is a resend of the first message because if
never received an ack.

...
More to this than meets the eye sometimes.

I worked within OASIS on WS-RX.  YOu might want to read up on this:

http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=ws-rx

THere are some scenarios modelled there that may be of interest.

Duane Nickull
***********************************
Consulting and Contracting; Proven Results!
i.  Neo4J, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t.  @duanechaos
"Don't fear the Graph!  Embrace Neo4J"

From: Chris Albertson <albertson.ch...@gmail.com<mailto:albertson.ch...@gmail.com>>
Reply-To: "neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>" <neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>>
Date: Tuesday, 29 May, 2012 6:02 PM
To: "neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>" <neo4j@googlegroups.com<mailto:neo4j@googlegroups.com>>
Subject: Re: [Neo4j] Need suggestion on data model

On Tue, May 29, 2012 at 4:19 PM, Michael Hunger <michael.hun...@neotechnology.com<mailto:michael.hun...@neotechnology.com>> wrote:
.

>   If user B replied to A is message. New message object will be
> created. how to maintain sequence between those messages

Look at the email headers.  You will find that most of them already have a line that starts "In-Reply-To:" and then has a message ID.

What you really should do is use this existing email headers.   The chain of "in-reply-to" pointers will do what you want

Likewise if filing measles there are other headers, like sender to "to"  that would make idea links

Chris Albertson
Redondo Beach, California


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »