News for hackers. Stuff that matters.
Re:Running Fast SQL on DynamoDB Tables by luhn on Wednesday January 23, 2019 @06:16PM (#18984221)
AFAICT, this actually isn't running SQL against data in DynamoDB. Rather, it syncs the the data in DynamoDB with their [Rockset's] own proprietary database, and runs SQL against that data.

It's effectively the same but technically quite different.

Re:Running Fast SQL on DynamoDB Tables by dkobia on Wednesday January 23, 2019 @06:50PM (#18984493)
Run SQL queries using Athena and a Dynamodb crawler in Glue. It's not that complicated.
Re:Running Fast SQL on DynamoDB Tables by wh-uws on Wednesday January 23, 2019 @06:59PM (#18984562)
Link to a tutorial that is as simple with code examples / screenshots as this one?

I ask because I have looked and haven't found one that I could follow without having to dedicate several hours to it.

To the point where I want to move off of dynamodb to aurora because I can't believe how hard it is to get simple insights like how many rows exist out of dynamo (I inherited the dynamo choice would not have used it myself)

Re:Running Fast SQL on DynamoDB Tables by iamsomewalrus on Wednesday January 23, 2019 @07:24PM (#18984763)
I’ll have a blog post out in AWS Big Data in a few weeks but the parent is right in that it’s not terribly difficult.

Should take about an hour with testing to get a Pyspark script together to read in a DynamoDB table and write it out to S3.

https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programm...

You’ll then need to crawl the S3 data to add it to your Glue catalog and then you can query it with Athena.

Re:Running Fast SQL on DynamoDB Tables by alexbilbie on Friday January 25, 2019 @08:19AM (#18997634)
If you're running this regularly (e.g. once an hour) to dump tables the cost of Glue can really add up due a minimum runtime length.

We switched to a scheduled Fargate task to dump data from DynamoDB into S3 as parquet files. It's really reliable, costs us ~$4/month and completely configurable.

Re:Running Fast SQL on DynamoDB Tables by teej on Wednesday January 23, 2019 @08:12PM (#18985116)
How are you getting data from DynamoDB to S3 so Athena can read it?
Re:Running Fast SQL on DynamoDB Tables by vonholstein on Wednesday January 23, 2019 @09:14PM (#18985416)
ETL job in AWS glue with DynamoDB as source and S3 as sink is one option.

https://aws.amazon.com/about-aws/whats-new/2018/07/aws-glue-...

Re:Running Fast SQL on DynamoDB Tables by ralusek on Thursday January 24, 2019 @08:34AM (#18988475)
You could have a lambda hook to trigger on dynamo write, and copy the dynamo change to s3 in the lambda.
Re:Running Fast SQL on DynamoDB Tables by coleifer on Wednesday January 23, 2019 @04:46PM (#18983398)
Running (expensive) SQL on dynamodb tables.
Re:Running Fast SQL on DynamoDB Tables by threeseed on Wednesday January 23, 2019 @04:59PM (#18983531)
Need to look at TCO.

Managing a database can be pretty expensive and time consuming.