This is one of the reasons we’re prioritizing this project at Shopify. The idea was that we can add composite keys for “real” composite key use cases but that it will also be useful for “virtual” composite keys when we need to include a tenant_id
in queries for sharding. My hope is that this will improve Rails integration for Vitess and any system that uses partition key based sharding.
3 Likes