Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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).

  2. #12
    Member
    Join Date
    Jul 2009
    Location
    London
    Posts
    14
    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?

  3. #13
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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.

  4. #14
    Member
    Join Date
    Jul 2009
    Location
    London
    Posts
    14
    Thank you for the clarification.

 

 

Similar Threads

  1. Subscribing to multiple items
    By ablock in forum Client SDKs
    Replies: 1
    Last Post: May 2nd, 2012, 01:56 PM
  2. LS table how it works
    By betasec in forum Client SDKs
    Replies: 1
    Last Post: February 21st, 2011, 11:03 AM
  3. Problem re-subscribing
    By colmfield in forum Client SDKs
    Replies: 5
    Last Post: July 13th, 2010, 03:37 PM
  4. Update Table
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: August 19th, 2009, 11:17 AM
  5. having problem while subscribing pairs
    By rekhender in forum Adapter SDKs
    Replies: 1
    Last Post: October 31st, 2008, 10:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:05 AM.