Rajeem_Cariazo | 2023-06-08 09:57:36 UTC | #1
Hi, Is it possble to have the same SessionId on different ParticipantId? I am asking because we are planning to store conversation segments on our table using the primary key formula ConversationId+SessionId+SegmentCounter
I am aware that SessionId can be the same for multiple conversations that were joined by conference but this is fine because we use ConversationId as part of our primary key.
Thanks.
Eos_Rios | 2023-06-08 12:50:25 UTC | #2
Rajeem_Cariazo, post:1, topic:20318
Is it possble to have the same SessionId on different ParticipantId?
Absolutely. I see 31 instances of it in my platform yesterday alone.
Since segments don't have a unique ID of their own my key for that branch is SessionId + ParticipantId.
Rajeem_Cariazo, post:1, topic:20318
I am aware that SessionId can be the same for multiple conversations that were joined by conference but this is fine because we use ConversationId as part of our primary key.
You were on the right track but missed the fact the same entity in two conversations will have unique participant ids in each conversation, so if the session gets shared by the conversation it's also shared by the participants.
Rajeem_Cariazo | 2023-06-09 06:42:41 UTC | #3
Thanks @Eos_Rios. How will SessionId + ParticipantId work on sessions with multiple segments? Don't you need to add at least a Segment counter?
Rajeem_Cariazo | 2023-06-09 06:40:45 UTC | #4
Hi @Eos_Rios, Sorry, I didn't make it clear that what I am asking is if it is possible in a single Converstion to have multiple sessions having the same SessionId but different ParticipantId. The result you sent has different ConversationId.
The goal of my question is if to ensure that the key that I am using on my table for segments is correct: ConversationId+SessionId+SegmentCounter.
Thanks.
Eos_Rios | 2023-06-09 12:49:33 UTC | #5
Rajeem_Cariazo, post:3, topic:20318
How will SessionId + ParticipantId work on sessions with multiple segments? Don't you need to add at least a Segment counter?
Have you seen the diagram here?
I'm using a modified version of that, so session and segment are in their own tables in my recreation of the conversation tree.
Rajeem_Cariazo, post:4, topic:20318
Sorry, I didn't make it clear that what I am asking is if it is possible in a single Converstion to have multiple sessions having the same SessionId but different ParticipantId. The result you sent has different ConversationId.
Not that I have seen and not that my data shows in the last 3m conversations.
Ben_Wyatt | 2023-06-13 19:30:56 UTC | #6
Eos_Rios, post:5, topic:20318
Not that I have seen and not that my data shows in the last 3m conversations.
Hopefully this discussion is helpful as corroboration: https://developer.genesys.cloud/forum/t/conversation-detail-duplicate-session-ids/13509 In short, session IDs are unique across conversations but are not entirely unique across an org.
system | 2023-07-14 19:31:48 UTC | #7
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20318