-
June 3rd, 2010, 10:26 AM
#11
About the snapshots, they come for the various items in the table independently of one another, just like the real-time updates
and there is no notification that all of them have been received.
You could determine that by knowing how many items are in the table,
but, unfortunately, the information on the number of items is indeed lacking for the SimpleTableInfo case.
Do you confirm that in your case the client, at the time of subscription, doesn't know how many items are involved?
To workaround the limitation, your Metadata Adapter, when resolving the group ID in getItems, could add a "sentinel" item as the last element of the returned array.
The sentinel item would just associate a recognizable value to a specific field, so that the client, upon reception of the snapshots, could recognize that value and take the index of the related item as the last one (still, it would be possible that the shapshot for some of the previous items would be yet to come).
-
June 3rd, 2010, 11:28 AM
#12
Will LS send snapshot events without any updates in this case? Or is it possible that some update events for the items the snapshot was already sent might be slotted into the sequence?
-
June 3rd, 2010, 12:18 PM
#13
All events pertaining to one item are independent with respect to events pertaining to other items, even if they are subscribed within the same table.
So, it is possible that your client receives
the snapshot for item ItemA
followed by a real-time update for item ItemA
followed by the snapshot for item itemB.
Obviously, this happens in short time, as the Server always sends the snapshots as soon as possible.
-
June 3rd, 2010, 01:13 PM
#14
Thank you for the clarification.
Similar Threads
-
By ablock in forum Client SDKs
Replies: 1
Last Post: May 2nd, 2012, 12:56 PM
-
By betasec in forum Client SDKs
Replies: 1
Last Post: February 21st, 2011, 10:03 AM
-
By colmfield in forum Client SDKs
Replies: 5
Last Post: July 13th, 2010, 02:37 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: August 19th, 2009, 10:17 AM
-
By rekhender in forum Adapter SDKs
Replies: 1
Last Post: October 31st, 2008, 09:58 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:02 AM.
Bookmarks