how to do database sharding
yande2011 opened this issue · comments
yande2011 commented
Does anyone have a requirement for database sharding? For example, inserting entities into different sharded tables based on a timestamp? how to do this?
Jens Schauder commented
This would have to happen on the driver level, when talking actual sharding, i.e. distributing data among multiple database servers, or possibly on the database level, when partitioning in a single database is sufficient. Oracle for example offers partitioned tables which look just as a normal table for the user.
Spring Data doesn't offer explicit support for sharding, and also won't do that in the future.