Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33

    Is it better to susbcriber to # tables then same table ?

    Hi all,

    I have a performance related question:

    Is it faster to subscriber to items in different tables then in the same table ?
    Basically, does onItemUpdate() get invoked serially for each update on a table or does it get invoked concurrently ?

    Regards

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    There is almost no difference.

    The web client packs a burst of requests from the API in a single request to the Server.

    In Javascript there is no concurrency at all, each thread is executed completely before pass the control to another thread.

    Feel free to organize your tables as it is more suitable for your application.

  3. #3
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33
    Actually I am wondering, when onItemUpdate() gets invoked and it happens to be a little bit slow (for instance to view full market, refreshing a large table and its DHTML is costly), does it slows down the refresh rate of other smaller tables in the same page or not ? Because if there is no concurrency, then onItemUpdate() for table2 must wait for onItemUpdate() on table1 to finish, right ?

    Regards,
    A

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Yes you are right, the onItemUpdate() for table2 must wait for onItemUpdate() on table1 to finish, btw note that the DOM updates should be processed in an asynchronous way by the browser engine (ie "DOM change" calls are non-blocking calls).
    In any case note that if the CPU is full (100%) this will slow down everything.

 

 

Similar Threads

  1. LS table how it works
    By betasec in forum Client SDKs
    Replies: 1
    Last Post: February 21st, 2011, 11:03 AM
  2. Subscribing to the Table
    By AidasOzelis in forum Client SDKs
    Replies: 13
    Last Post: June 3rd, 2010, 02:13 PM
  3. More tables in one page scenario
    By cbrogliato in forum Client SDKs
    Replies: 1
    Last Post: October 2nd, 2009, 03:13 PM
  4. Update Table
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: August 19th, 2009, 11:17 AM
  5. DynaMetapush table
    By georgeeapen in forum Client SDKs
    Replies: 2
    Last Post: April 21st, 2009, 12:17 PM

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 09:32 PM.