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

dynamodb transition #11

Closed
tmcw opened this issue May 22, 2014 · 2 comments
Closed

dynamodb transition #11

tmcw opened this issue May 22, 2014 · 2 comments

Comments

@tmcw
Copy link
Contributor

tmcw commented May 22, 2014

@mick i'm currently looking around in dynamodb land for how we should angle this

  • intuition would be that simple 'get a ton of exact keys' would be faster than any range queries, but dynamodb charges read units for misses, so that seems inefficient
  • otherwise, we could use lots of range queries using the Query type

as far as how to abstract this, it's either finishing #10 or writing simple-ish 'wrappers' for each backend, like i've started with dynamodb. not sure if leveldown is a decent abstraction for dynamodb

@tmcw tmcw changed the title mongodb transition dynamodb transition May 22, 2014
@mick
Copy link
Contributor

mick commented May 23, 2014

Dynamo Query allows for BEGINS_WITH comparisons. I think you could generate s2 cells that cover the bounds, perhaps limited to like 5-10 cells (this would be something to tune), and use those for parallel queries. You'll end up getting a bit too much data back and then need to filter that out in cardboard.

leveldown compatible api could be cool. I really like that running locally it would levelup -> leveldown -> dynalite -> levelup -> leveldown But dynamo has more complex items then leveldb key/values so the abstraction might not allow for some of the features you might want to use in the future.

@tmcw
Copy link
Contributor Author

tmcw commented Jun 2, 2014

Okay: after much annoyance with trying to get this thing compatible with both DynamoDB and LevelDB, I'm dropping LevelDB. It shall be revisited at a later date, but the style and function gap is just too big for compatibility not to be a distraction.

@mick mick closed this as completed Jul 25, 2014
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

2 participants