On Wed, Sep 1, 2010 at 11:56, benco <[email protected]> wrote:

>
> I've a really huge table to manipulate (~80000 rows) and I'm thinking about
> how to improve the column sorting calls.
>
> When sorting a column, it takes a lot of time because of the numerous rows
> (I'm using the simple model) - especially on IE of course.
>
> I could of course limit the number of loaded datas and create some sort of
> remote calls when sorting. But I also want to limit the number of
> interactions with the server.
>

If you want to keep your sorting to the client, you have to accept that the
time will be spent to do it. The question is *when* it will occur. A nice
option you have, if memory footprint isn't a huge concern (which with
today's computers really shouldn't be), is to use the SmartTableModel
contrib. With it, you provide the set of "views" ahead of time. In your
case, the views are different sorts. The model maintains sorted references
to the data in each of the views as data is added, so switching views is
immediate. The sorting time will be incurred once after loading your initial
large data set (and as rows are added, but small numbers of rows are
inserted into the various view reference arrays very quickly) instead of
each time the sort order is changed.

Derrell
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to