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

Bbox paging #155

Merged
merged 5 commits into from Dec 17, 2015
Merged

Bbox paging #155

merged 5 commits into from Dec 17, 2015

Conversation

mick
Copy link
Contributor

@mick mick commented Dec 16, 2015

This PR feels like a step back in a way, but this enables a simple way of handing paging on bbox queries for small datasets. The next steps to make this better bbox query better involve schema changes, so lets start here for now.

This just does a list query for all features with a queryfilter. Query filters in dynamo are applied after the data is fetch on dynamo, but before it is returned to client. So some pages will be empty, some pages will have few items, but this does allow for us to page through a bbox query using feature id.

cc @willwhite @rclark

});
var maxPages = 10;
var page = 0;
var combinedFeatures = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth limiting based on feature count or data size, whichever you hit first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont limit on size with the list queries right now (because the features could be on s3) but we limit to 1 page or 100 features. I dont think we need this right now, and in the future this will be limited by dynamo if we keep all the features in there.

mick added a commit that referenced this pull request Dec 17, 2015
@mick mick merged commit fe85c02 into master Dec 17, 2015
@mcwhittemore mcwhittemore deleted the bbox-paging branch December 7, 2016 22:19
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.

None yet

2 participants