有没有一种方法可以使用 gorm v2 实现 PostgreSQL 表分区?

huangapple go评论92阅读模式
英文:

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

问题

在gorm v2中,有没有办法指定某个表按某个列进行分区,就像https://pg.uptrace.dev/table-partitioning/中所示的那样?

英文:

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/?

答案1

得分: 1

我认为你要找的是gorm中的分片功能:

英文:

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

huangapple
  • 本文由 发表于 2022年4月4日 21:35:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/71738187.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定