Hash Partitioning on primary key (long) doesn't work #4024
Replies: 6 comments
-
|
@MaksimSimkin why would you partition a table using its primary id? You should be partitioning by some other property other than the primary id. Possibly, if you are using Edit: If you want to use some sort of a partition number then that has to a property on |
Beta Was this translation helpful? Give feedback.
-
|
@mysticmind If i am doing partition on primary id i have always more or less equal amount of data in each partition, and i don't need to take care if the property i use is distributed the sam equally. |
Beta Was this translation helpful? Give feedback.
-
|
Got it, you have a pre-existing partition which you created yourself and now you are trying to use the Marten provided partitioning thinking it would seamlessly work. I think, you may want to check what Marten does for partitioning as a logic and get the state of your existing db in the exact similar way to get going. |
Beta Was this translation helpful? Give feedback.
-
Makes sense, gotcha! |
Beta Was this translation helpful? Give feedback.
-
|
This is not a bug per se. So converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
|
added back as an issue #4025 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a class With Primary Key Id (long) and we want to have hash partitions on this table:
On SQL generation for this table we are running in issue, that Marten is trying to duplicate Id Column for partitions, having already an id pk column.
Beta Was this translation helpful? Give feedback.
All reactions