forked from longbridge/gorm-sharding
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
Can someone explain what is the difference when registering a table as "users", and when registering it as User{} model struct? Secondly, does the plugin makes shard tables on its own? I am making the shards manually for now!
My current config is making tables via db.AutoMigrate and when needed using atlas_schema_revisions.
My question extends to shardingSuffix, and ShardingAlgorithm, have implemented custom logic, but the queries are still being redirected to main table, and not the shard valid.
Expected answer
The difference between "users" and User{} is?
The ShardingAlgorithm is not working because?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels