spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.

Home Page:https://spring.io/projects/spring-data-jdbc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to do database sharding

yande2011 opened this issue · comments

Does anyone have a requirement for database sharding? For example, inserting entities into different sharded tables based on a timestamp? how to do this?

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.