Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Improving Performance with Databound ComboBoxItem

$
0
0
GWT 2.5
SmartGWT 3.1p LGPL
FireFox 17.0.9ESR

---

I have a ComboBoxItem that is used to display about 500,000 items. It is databound to a JSON datasource. The JSON is generated upon retrieval from the database and presented via servlet to the datasource and ultimately to the ComboBoxItem.

Loading the items takes very little time at all. When browsing through the picklist, when I run the mouse over the listing, FireFox goes to about 50% CPU usage in Windows. Memory increases but eventually drops. Using autocomplete also is a little slow, so I may turn that off.

Since I am using LGPL, I do not have the SQLDataSource option. Is it possible to do paging with a DataSource in the JSON data format? Are there any other things I can do to improve the scrolling performance when using the middle scroll wheel? What about loading 100 items at a time, for instance?

I thought about using OFFSET with LIMIT in PostgreSQL to do this. But I would have to know when to load the next 100 items, for instance.

Viewing all articles
Browse latest Browse all 4756

Trending Articles