go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
268 stars 58 forks source link

fix: sharding NumberOfShards #103

Closed horan-geeker closed 1 year ago

horan-geeker commented 1 year ago

Fix table suffix caculate

When I give NumberOfShards=100, it means I have table_00 to table_99, but now I get a table_000 not exists error

jinzhu commented 1 year ago

Hi @horan-geeker

Sorry for the confusion, to not going to make any changes due to the compatibility