-
March 19th, 2007, 07:33 PM
#1
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
-
March 20th, 2007, 10:36 AM
#2
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.
-
March 22nd, 2007, 06:44 PM
#3
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
-
March 23rd, 2007, 09:42 AM
#4
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
-
By betasec in forum Client SDKs
Replies: 1
Last Post: February 21st, 2011, 10:03 AM
-
By AidasOzelis in forum Client SDKs
Replies: 13
Last Post: June 3rd, 2010, 01:13 PM
-
By cbrogliato in forum Client SDKs
Replies: 1
Last Post: October 2nd, 2009, 02:13 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: August 19th, 2009, 10:17 AM
-
By georgeeapen in forum Client SDKs
Replies: 2
Last Post: April 21st, 2009, 11:17 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 03:50 PM.
Bookmarks