Denormalized Context by Default #177
csirmazbendeguz
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Thank you for the suggestion! There are a few reasons it isn't the default:
One of the original reasons for supporting denormed context was to also better support partitioning of the event tables. This is a pretty advanced edge case. Given that denormed context can be turned on globally for everything with one setting, I just opted to keep it as something people opt in to if they are aware of the additional space requirements and other subtle differences |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, let me say this library is amazing. I have read through the docs today and I have a suggestion.
I was surprised to see
pgh_context
is aForeignKey
by default.If I understand correctly, the only benefit of storing the context in a table over a
JSONField
is that since context objects can be shared between events, they can be updated after an event is created. I don't know if there's a good use case for this though?I think denormalized contexts would make more sense as the default setting. WDYT?
Beta Was this translation helpful? Give feedback.
All reactions