Skip to content

Difference between "users" and User{} for registering #186

@harshjaintrio

Description

@harshjaintrio

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions