derrell / App-Inventor-Gallery

App Inventor Gallery
20 stars 17 forks source link

App Management needs remote table model instead of simple table model #43

Open derrell opened 13 years ago

derrell commented 13 years ago

There are going to be too many applications for the entire application list to be loaded into memory at one time, for the Application Management module. This module should be altered to use qx.ui.table.model.Remote instead of qx.ui.table.model.Simple so that only those records near the ones that are displayed are actually fetched.

Assigned to @adorettic

cado commented 13 years ago

Referencing this guide, http://manual.qooxdoo.org/1.5/pages/widget/table_remote_model.html, I may need an RPC that returns the row count from the database. The only way I can think of doing this with the currently exposed RPCs is to get the whole table and use the count from that, which defeats the purpose a bit. Unless I'm misunderstanding the purpose of the _loadRowCount function, which is entirely possible. Perhaps @derrell or @reedspool could clarify this for me?

derrell commented 13 years ago

On Sat, Jul 23, 2011 at 20:27, adorettic < reply@reply.github.com>wrote:

Referencing this guide, http://manual.qooxdoo.org/1.5/pages/widget/table_remote_model.html, I may need an RPC that returns the row count from the database. The only way I can think of doing this with the currently exposed RPCs is to get the whole table and use the count from that, which defeats the purpose a bit. Unless I'm misunderstanding the purpose of the _loadRowCount function, which is entirely possible. Perhaps @derrell or @reedspool could clarify this for me?

Yes, you understand it perfectly. To use the remote model, you need two remote requests: one to get the row count, and the other to retrieve a specified set of rows.

Let's talk about what your specific needs are, and I or Reed will implement it for you.

Derrell

derrell commented 13 years ago

Postponed to the future. Marked as enhancement and removed assignee.