-
January 14th, 2008, 06:42 PM
#1
Thanks Alessandro! We will see if there is a performance hit with this.
At the worst case, we will send a sort key to the server and have it sort. We can clear the entries from the push table and have the server resend.
So we don't need to worry about the number of entries we need handle in the client side.
-
January 25th, 2008, 08:46 PM
#2
Sort with DynaMetaPush table
Hi,
We tried out the sorting/pagination interfaces of this table in COMMAND mode and looks like they work fine.
We are using the following methods:
setMaxDynaRows()
setMetapushSort()
getCurrentPages()
goToPage()
We use the COMMAND mode and displaying 25 rows per page. We are building the pagination links using (Total pages = getCurrentPages()/25). We rebuild the page links in the item call backs and see if the total pages is changed from the last update.
Is there a reason we shouldn't be using them for sorting and pagination?
We tried with 500 rows and did not see any performance issues. How is the sort handled and where is the data stored (client/server)?
Thanks,
Kal
-
January 28th, 2008, 09:18 AM
#3
Hi,
The sort is performed on the client side.
The weigth on the CPU is relative to the number of rows and the frequency of the updates of your feed so that if you don't see any performance issues in your tests you should not worry about that.
Note that all the updates are received by the client to keep the view sorted.
Take a look here: http://app.lightstreamer.com/PagedPortfolioDemo
(Total pages = getCurrentPages()/25)
Note that the getCurrentPages method already returns the number of pages.
The onCurrentPagesChanged callback will notify you if the number of pages is increased or decreased.
see http://www.lightstreamer.com/docs/cl...pushTable.html
HTH
-
January 28th, 2008, 06:40 PM
#4
Hi,
That demo page helped out a lot.
Thanks!
-Kal
Similar Threads
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 1
Last Post: February 24th, 2010, 09:52 AM
-
By Pradeep Chahal in forum Client SDKs
Replies: 2
Last Post: February 15th, 2010, 10:20 AM
-
By Alessandro in forum Client SDKs
Replies: 2
Last Post: June 17th, 2009, 11:50 AM
-
By atnemeth in forum Client SDKs
Replies: 3
Last Post: May 19th, 2008, 10:19 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 04:40 PM.
Bookmarks