Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A functional AJAX Data Store Example now using HackerNews instead of Digg #412

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

aleksj
Copy link

@aleksj aleksj commented Aug 1, 2012

Solving the problem of Digg not working by using HackerNews API provided by ThriftDB.

Notes:
* disabled sorting (API doesn't support it properly) - but this isn't a highlight of this specific example
* implemented running multiple requests in parallel, as well as multiple indicators
* Working around the limitations of ThriftDB API
* maximum number of rows returned is 1000
* maximum individual query is 100
* ability to run multiple requests in parallel
* known problem: if a request fails, the "buffering" indicator won't go away
* adaptive spacing for individual rows would help

@aleksj
Copy link
Author

aleksj commented Aug 1, 2012

Turns out the 400 errors were due to very large request sizes. I shudder at how much bigger mleibman's monitor is than mine. :)

@mleibman
Copy link
Owner

mleibman commented Aug 1, 2012

While I do have a 30" monitor, the grid size in the example is fixed, so that couldn't have been it.

Some initial comments:

  • When a different search term is entered and the grid is not scrolled to top, the grid blanks out.
  • Not a fan of parallel XHRs. Quickly scrolling through the grid will fire off dozens and dozens of them. Bad for not overloading the server and bad for overall latency. I much prefer the throttle-based implementation.
  • Lots of loading indicators a) look bad when all put on top of each other and b) are not being removed from the DOM littering the DOM tree.

@aleksj
Copy link
Author

aleksj commented Aug 1, 2012

  1. The handling of the search term is not very good, but these problems existed in the previous version of the example.
  2. While I agree that a queue could be preferable, the current system works for the purpose of this example.

Solving the problem of Digg not working. Improved search term handling.

Working around the limitations of ThriftDB API
* maximum number of rows returned is 1000
* maximum individual query is 100
* ability to run multiple requests in parallel
* only one indicator at a time

Notes:
* disabled sorting (API doesn't support it properly) - but this isn't a highlight of this specific example
* adaptive spacing for individual rows would help
@aleksj
Copy link
Author

aleksj commented Aug 1, 2012

All issues except for parallel XHRs fixed.

@mleibman
Copy link
Owner

mleibman commented Aug 6, 2012

Loading indicator issue is still there.

@aleksj
Copy link
Author

aleksj commented Aug 25, 2012

It only shows one indicator at a time. Is there another issue?

RandScullard added a commit to RandScullard/SlickGrid that referenced this pull request Jun 21, 2013
… News search API rather than the now-obsolete Digg API.

Some of the code that talks to HNSearch was taken from Aleks Jakulin's nice work on pull request mleibman#412 (commit d175aa1), but my changes to the example are more minimal. I've also improved the sorting a bit and added a sortable Date column.
RandScullard added a commit to RandScullard/SlickGrid that referenced this pull request Jun 25, 2013
… News search API rather than the now-obsolete Digg API.

Some of the code that talks to HNSearch was taken from Aleks Jakulin's nice work on pull request mleibman#412 (commit d175aa1), but my changes to the example are more minimal. I've also improved the sorting a bit and added a sortable Date column.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants