You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users will be spreaded by remainder of the division their ids (user with id 10 - to "users_0" database, user with id 106 - to "users_6" database, etc.).
Hi, is it possible to make slave configuration for each shard of connection?
For example (using Symfony 4.2)
I have very big table "users". I want to separate this table by 10 instances.
Structure will be such this:
Database "users_0", table "users_0"
Database "users_1", table "users_1"
Database "users_2", table "users_2"
Database "users_3", table "users_3"
Database "users_4", table "users_4"
Database "users_5", table "users_5"
Database "users_6", table "users_6"
Database "users_7", table "users_7"
Database "users_8", table "users_8"
Database "users_9", table "users_9"
Users will be spreaded by remainder of the division their ids (user with id 10 - to "users_0" database, user with id 106 - to "users_6" database, etc.).
config/packages/doctrine.yaml currently this:
How i can to setup slaves for each shard?
For example it can be seems like this:
Is it planned to support this in the future if it is not possible now?
The text was updated successfully, but these errors were encountered: