I am working on time series data for which the key column is a timestamp: Time. There are also many βvalueβ columns for each row.
I am going to transfer a number of my data for several hours (due to daylight saving time problems). To do this, I update the key from several lines, and this can lead to duplication of keys. I would like duplicate keys at the edge of the date range to be ignored. I want the shifted range to overlap the old.
I plan to do something like:
UPDATE IGNORE time_series_table SET time=time-<some_shift> WHERE <time in a date-range>
Here is the result of describe <table> for the time key:
Field Type Null Key Default Extra TimeMeas datetime NO PRI NULL
My question is: will he shift all the keys at once or try to shift each row one by one, which will lead to massive duplicate keys in the most shifted range?
Do you have a better way to do this in your mind? thanks in advance
source share