News for hackers. Stuff that matters.
Re:Spending $5k to learn how database indexes work by romero-jk on Sunday November 07, 2021 @12:00AM (#29136459)
If you take out online schema changes and sharding, what's the use case for vitess?
Re:Spending $5k to learn how database indexes work by derekperkins on Sunday November 07, 2021 @07:11AM (#29138781)
Architected correctly, there's minimal need for cross-shard foreign keys. A common use case is sharding by tenant/customer id, which means that all records for a single customer live on a single shard. That lets you have all the FKs that you want, and any operations for that customer happen on a single shard, which gives you maximum speed and transactional guarantees.
Re:Spending $5k to learn how database indexes work by Something1234 on Sunday November 07, 2021 @01:33AM (#29136833)
If you take sharding out what's the point of using anything other than a normal sql database?
Re:Spending $5k to learn how database indexes work by derekperkins on Sunday November 07, 2021 @07:29AM (#29138885)
Vitess offers a lot of quality of life improvements over stock MySQL, including built-in backups to S3/GCS, managed replication, plus soon to be auto-failover detection. Additionally, with vreplication, you can do some pretty powerful materialized views that aren't possible with MySQL. Finally, Vitess Messaging is an awesome way to do async work, allowing for transaction guarantees where you can ack a message, do data work, then add to another queue, all without having to deal with weird side effects.