DSQL performance?

We currently run Aurora MySQL but have a use case where we’re pushing the table size limitations. Currently, we’re manually partitioning that table. DSQL seems like it could be a good fit as it would address that limitation, and we don’t need any of the currently unsupported PostgreSQL features.

I’ve done some quick benchmarks using YCSB. I wanted to get a feel for performance before investing more time. I ran the same mix of tests on a single region DSQL cluster and an Aurora MySQL 3, db.r8g.8xlarge instance with I/O Optimized enabled.

I expected selects to be slow since there isn’t any built-in caching. I also found simple inserts, at a similar volume to my actual use case, took 2-4x as long. I was doing sustained load for an hour. Reads took 6-8x as long. Updates were also slow, and I saw a large number of “change conflicts with another transaction” errors.

On the plus side, the DSQL cost during these tests was a little less than two reserved db.r8g.8xlarge instances.

Anyway, just posting to see if this roughly matches other people’s experience.


Related discussions:

AWS RDS Postgres / Aurora Postgres
MySQL Aurora Serverless, questions about high idle load and CPU credits.
Migrating from Aurora PostgreSQL 9.6 to v10+?
Urgent & Important – Rotate Your Amazon RDS, Aurora, and DocumentDB Certificates
My understanding of Aurora serverless
Access Aurora Serverless Instance from Local Machine
Aurora with autoscaling vs. Aurora Serverless
Is anyone else receiving refunds for AWS RDS (Aurora Serverless)?
What is the difference between AWS DMS and mysqldump for MySQL database migration? When to choose one over the other?
Amazon Aurora Global Database supports managed planned failover
Is it possible to migrate MySQL 5.6 to Aurora v2 without upgrading the db engine to 5.7 first?
Thoughts on / experience with Aurora Serverless V2?
Amazon Aurora finally arrives -- and without keys
AWS database design
Combining Aurora Serverless v2 with Reserved Instances
Request to ECS is slow for external traffic only?
Amazon Aurora DSQL is now generally available - AWS
Fastest way to create Postgres aurora with obfuscated production data
PostgreSQL 18 on Amazon Aurora PostgreSQL. When?
Got Cloud Practitioner yesterday
RDS Aurora vs DynamoDB
What would be the correction option for this question (DB Specia
Passed SAA-C03
Why is not Aurora Clone a valid option?
Looking to migrate from MySQL to DynamoDB
Is RDS Aurora Multi-AZ by default?
So users post complaints about DynamoDB frequently in this subreddit. Has anyone used it for something non-trivial with success? Where it has been a better choice compared to RDS, Aurora, or a managed MongoDB database? Care to share some of the detai
Help me understand Aurora Serverless pricing?
Data API for Amazon Aurora Serverless
Aurora slow versus MariaDB
How far behind does lambda tend to be with the latest version of boto3

performance is very dependent on your schema and usage patterns - can you share more?

Make sure you understand the fundamentally different concurrency model before you deeply invest in switching switching.

Yeah, reading https://docs.aws.amazon.com/aurora-dsql/latest/userguide/working-with-concurrency-control.html, that looks like what’s going on in this benchmark. Should be less of a problem with my actual use case.

Good points. This benchmark is a super simple schema. One I’d assumed would be a best case scenario.

CREATE TABLE usertable (
YCSB_KEY VARCHAR(255) PRIMARY KEY,
FIELD0 TEXT, FIELD1 TEXT);

Could the text fields be an issue?

I admit, my actual use case table is quite different and a bit more complicated. 20 something columns, some DATETIME and the rest floats or various size ints. A PK and five secondary indexes. Actual row size is similar though.

Performance is going to depend on how the pk is generated to avoid hotspots

Ah, shoot. Good callout. For some reason, I had it in my head that it hashed the PK. Per the user guide, that’s not the case:

> When you define a primary key, Aurora DSQL stores table data in primary key order.

We’re not using auto increment, but it is a monotonically increasing integer. Definitely would add to the complexity of the migration.

A bit of a bummer since I don’t believe we need the PK to be in order for range operations, or anything like that. Maybe they will offer that as an option in the future.

Feels hacky, but I guess we could just reverse it. I know we do that with S3 in a few places.

Use uuid

I work for DSQL.

If you dm me your cluster id (which is not private information) and region I can take a look.

My initial thought is that you may not be running the benchmark long enough. We test ycsb internally and get good results.

not related to YCSB, but Marc has written about testing with TPC-B: https://marc-bowes.com/dsql-tcpb.html