|
|
|
|
|
by IpV8
3234 days ago
|
|
Thats funny, because I was dying for it to be longer. I felt like the post was just an introduction. I'd love to see a part 2 with a more detailed description that touches more of the implementation of a sharding plan. For me a major question I have as I consider sharding is what my application code will look like. Let's say I have a query like: 'select products.name from vendor inner join products on vendor.id = products.vendor where vendor.location = "USA"' If I shard such that there are many products table (1 per vendor), what would my query look like? |
|
If that's too much work, then an easy preliminary step is to add the abstraction layer in your application code. That gets you most of the benefits of a proxy for the purpose of having clean application logic, and makes it easy to switch over later, but is less powerful and feature complete.
[0]: http://vitess.io/overview/#features