Overwriting deletes too much data
Closed this issue · 0 comments
wxmiked commented
When conflicting times are deleted, the conflicting height and time should be deleted. Currently, all of the same times are being deleted. See example output below:
Processing time: 2016-09-22T20:00:00.000Z
Inserted 11629, 5.0 height x,y wind points at 387.6333333333333 I/s
Inserted 11629, 6.0 height x,y wind points at 184.5873015873016 I/s
Inserted 11629, 7.0 height x,y wind points at 125.04301075268818 I/s
Inserted 11629, 8.0 height x,y wind points at 93.032 I/s
Deleting conflicting times: DELETE FROM wind_3 WHERE t = timestamp with time zone'2016-09-22 20:00:00 '
Inserted 11629, 16.0 height x,y wind points at 61.8563829787234 I/s
Inserted 11629, 100.0 height x,y wind points at 53.10045662100457 I/s