Partitioning
#4259
Replies: 3 comments 6 replies
-
Table partitioning is not currently supported at the schema level, though it should be a relatively straighforward Postgres feature to expose. We need syntax and migration support. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What about the following syntax? type User {
required property username -> str {
constraint exclusive;
# partition based on the first 2 letters of the username
partition [0:2];
}
type Game {
required link user -> User;
required property start_time -> datetime {
# there are millions of finished games, so it's recommended to partition by days
partition days;
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
Is there any progress on this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is table partitioning supported in the schema? Or does EdgeDB automatically partition tables somehow?
E.g. in a database that stores results of played game results, there are millions of historical
Game
records, but only a few thousands new game results are added each day. Partitioning bystart_time
with time intervals would be a good choice here.Beta Was this translation helpful? Give feedback.
All reactions