-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Changing the default value of sys_period upon INSERT INTO #86
Comments
Hello @ALee008, Your usecase looks slightly different from the one discussed in #6. If there aren't going to be any regular inserts/updates while you are inserting your future data, then I think both of your solutions shall work work without any data integrity issues. If it is the other way where your regular inserts/updates might happen while you are inserting your future data, then you might have to look for another solution where both these types of operations go hand-in-hand. Hope this helps. |
@ALee008 can you please clarify what you mean with:
Specifically, I'm not sure how this concept of validity applies and interacts with the purpose of this extension. |
Hey @bilalshareef , hey @simoneb, thank you for your replies. @simoneb: You are right. I come to realize, that this extension is not meant to used like this. This is a domain driven topic and should not be mixed with the technical aspect like "temporal tables". We have to find a different solution. Junction tables perhaps. |
Thanks for the follow up, indeed I had suspicions that you were mixing up some domain concept with the purpose of this extension, but I wan't sure. Thanks for clarifying and taking the time to open and update this issue. |
Dear nearform team,
i have a question regarding the default behavior of the sys_period column upon inserting new rows in an already versioned table. I found these two issues discussing this topic: #6 and #12
Classic temporal tables have worked for our use case up until now. New assets start on creation time, so the default behavior worked just fine. But we are
notnow challenged with inserting new assets that shall be valid from some future date.From the discussions in mentioned issues I understand that this will not be feature in the versioning() function. Two possible workarounds come to mind:
Could you share your thoughts about which of these workarounds make sense regarding data integrity when using the versioning function?
Thank you and kind regards,
ALee
The text was updated successfully, but these errors were encountered: