Reviewers: jgw, Dan Rice,

Description:
Currently, we fetch stocks on every key up event.  This is inefficient,
and it means that the stocks table is out of sync with the search query.

Fix:
====
This patch adds a 250ms timeout before querying stocks so that we wait
until the user pauses their typing.  We also make sure that the response
matches the current query.  If the response doesn't match the query, we
ignore the search results.

Please review this at http://gwt-code-reviews.appspot.com/270801/show

Affected files:
bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StockQueryWidget.java
  bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StockSample.java
bikeshed/src/com/google/gwt/sample/bikeshed/stocks/server/StockServiceImpl.java bikeshed/src/com/google/gwt/sample/bikeshed/stocks/shared/StockResponse.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words "REMOVE ME" as the subject.

Reply via email to