SpiceQA
Questions Tags Users Badges

Is there a way to achieve postgres table partitioning using gorm v2?

user_7749769 0
Created Apr 4, 2022 Edited Apr 4, 2022
Viewed 240

In gorm v2 https://gorm.io/docs/index.html, is there any way to specify that this table is partitioned by some column like https://pg.uptrace.dev/table-partitioning/?

golang-migrate go-gorm go
Share
1 Answers

I think what you are looking for is called sharding in gorm:

  • https://gorm.io/docs/sharding.html
  • https://github.com/go-gorm/sharding#sharding-process
edited Apr 4, 2022
user_8722270
answered Apr 4, 2022
Related
Terms of service Privacy policy
Powered by Answer