You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I issue this command I can see new rows are created on heart_metrics but these rows have different data than my previous run which is surprising to me. I would spec the command to be idempotent and always create the same set. In fact I would spec it to overwrite old data when run on the same date range.
I am not sure if it is a problem with the system or simply the docs should explain a little how it works.
The text was updated successfully, but these errors were encountered:
fetch_all is idempotent. The method first tries to find an existing record that has the same date and movingaverage of 0. If you have already run any commands to cache moving averages then you might see duplicate records for the same date, but that is normal.
Can you give a sample of the data that appears to be duplicated? (full records)
bundle exec rake heart:metrics:fetch_all fromdate=2013-09-01 todate=2013-09-03
When I issue this command I can see new rows are created on heart_metrics but these rows have different data than my previous run which is surprising to me. I would spec the command to be idempotent and always create the same set. In fact I would spec it to overwrite old data when run on the same date range.
I am not sure if it is a problem with the system or simply the docs should explain a little how it works.
The text was updated successfully, but these errors were encountered: