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

List layers API #37

Closed
tmcw opened this issue Aug 7, 2014 · 6 comments
Closed

List layers API #37

tmcw opened this issue Aug 7, 2014 · 6 comments
Assignees

Comments

@tmcw
Copy link
Contributor

tmcw commented Aug 7, 2014

No description provided.

@morganherlocker
Copy link
Contributor

Is something like this possible in dynamo without traversing the entire table? I don't think you can do a query for "unique" without checking every record. Maybe a secondary table that lists the tables?

@tmcw
Copy link
Contributor Author

tmcw commented Aug 7, 2014

Try Select: 'COUNT'?

@morganherlocker
Copy link
Contributor

notes:

  • we will probably need a secondary datastore past a couple thousand layers
  • for now, query the layer attribute for all records, then return unique

@morganherlocker
Copy link
Contributor

This is requiring an update in dyno mapbox/dyno#2. Currently, dyno does not allow for you to send a default query with no constraints. If you try, it returns (or some variation, depending on how you try to get around it):

Query condition missed key schema element layer.

@mick
Copy link
Contributor

mick commented Aug 12, 2014

@morganherlocker you cant do a query with no constraints, a hash key is required.You'll want scan.

@morganherlocker
Copy link
Contributor

Closing for now. Will reopen if this implementation becomes an issue.

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

No branches or pull requests

3 participants