open-austin / atx-restaurant-scores

App to query Austin restaurant scores
https://www.open-austin.org/atx-restaurant-scores/
Other
2 stars 6 forks source link

limit result set #6

Open courtney-rosenthal opened 11 years ago

courtney-rosenthal commented 11 years ago

The queries can sometimes return huge result lists.

Investigate whether there might be ways to limit the result set size.

Due to the way that results are returned, we probably cannot implement pagination.

Possible actions are:

  1. When result set size limit is reached, show an error and ask the user to refine their query.
  2. When result set size limit is reached, show an error and provide the user a "power search" function with expanded result set sizes.
khit commented 11 years ago

For reference (I asked Jordan this question last week):

You can pass a param ($limit) in the API call that will specify the max number of results returned.
$limit Maximum number of results to return. If not specified, defaults to 1000. src: http://dev.socrata.com/docs/queries