-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allow extending a series backwards? #242
Comments
This is on hold for now b/c it is unclear how useful this is and how often the use case comes up. Messing with the past can also have negative effects (see also: https://en.wikipedia.org/wiki/Back_to_the_Future_Part_II) and ask for a whole battery of functions and functionality, e.g., deleting from the other end when series were mistakenly added to the past. |
This would be really useful for us, because it happens again and again and again that we have to store old vintages, unfortunately. I suggest we make a store_past_vintage parameter (or similar) that one explicitly has to set to TRUE to override the default behavior, which is to not allow it. |
I am really skeptical a flag is enough. Screwing up the past is really the worst case scenario for a time series archive. Particularly when the original source gets revised and claims the did not change anything or isn't around anymore. To me, the need to make sure that the entire series is around in memory, i.e., the current series plus whatever is ahead is the best safety, also because it can be tested. But then I don't have the pain @omuelle describes on a regular basis. Tough call. |
Then what about a separate function? We need the functionality anyway, it's just a matter of where to put it. |
@omuelle Are you talking about simply appending "in the other direction" or also inserting vintages at arbitrary points? I think such functionality should certainly only be available to timeseries admins. |
At arbitrary points. Basically whenever a user/process fails to write vintages, but we still have them, e.g. in another schema, on the disc or at the data provider. Admins only sounds like a good idea. |
Currently timeseriesdb only allows storing vintages newer than any stored before. This is to prevent manipulation of the past by sandwiching new Vintages into the history.
It might however be useful in some (admittedly rare) cases to allow storing vintages that extend a series into the past i.e. if the vintage is older than any existing ones.
What are your thoughts?
The text was updated successfully, but these errors were encountered: