Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2008
    Location
    London
    Posts
    4

    clarification required please - same item requested multiple times

    Hi All,

    I have written my test Adapter and have got a web page subscribing to the updates.

    I wanted to know how LS handle multiple components on the same page requesting the same items? Do it open multiple channels???

    e.g. if multiple JS components on the page do the following, what is going to happen?

    var schema = new Array("field1","field2","field3","lastUpdate");
    var group = new Array("item1","item2");

    var newTable = new NonVisualTable(group, schema, "MERGE");
    newTable.setSnapshotRequired(true);
    newTable.onItemUpdate = updateFunction;
    page.addTable(newTable, "myItems");

    Thanks
    jag

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,093
    If multiple tables are defined on the same page (or on different pages that refer to the same Engine),
    there is one socket connection kept open where data for all tables are received.
    In case the same item is mentioned twice in different tables (or even in the same table),
    no optimization is performed and the updates for the item are received twice, once for each subscription instance.

    Note that the two subscription instances may have different schemas or different subscription options.
    Note that, if filtering is allowed for the two subscription instances, even with the same options,
    it is possible that filtering is applied in a sligthly different way for the two subscription instances.

 

 

Similar Threads

  1. Replies: 2
    Last Post: December 24th, 2010, 07:51 AM
  2. Replies: 1
    Last Post: December 16th, 2010, 09:41 AM
  3. Multiple rows per item
    By adam.connelly in forum Adapter SDKs
    Replies: 3
    Last Post: August 26th, 2008, 09:42 AM
  4. recommened usage - multiple item subscription
    By tstojano in forum Client SDKs
    Replies: 1
    Last Post: August 13th, 2008, 04:12 PM
  5. Replies: 14
    Last Post: May 13th, 2008, 03:27 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 07:41 AM.
Lightstreamer Logo