-
November 5th, 2008, 11:01 PM
#1
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
-
November 6th, 2008, 08:44 AM
#2
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
-
By hungtt in forum Adapter SDKs
Replies: 2
Last Post: December 24th, 2010, 07:51 AM
-
By mohamida in forum Client SDKs
Replies: 1
Last Post: December 16th, 2010, 09:41 AM
-
By adam.connelly in forum Adapter SDKs
Replies: 3
Last Post: August 26th, 2008, 09:42 AM
-
By tstojano in forum Client SDKs
Replies: 1
Last Post: August 13th, 2008, 04:12 PM
-
By tuongkha in forum Adapter SDKs
Replies: 14
Last Post: May 13th, 2008, 03:27 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 07:41 AM.
Bookmarks