-
Notifications
You must be signed in to change notification settings - Fork 298
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 selective daily summaries to be rebuilt #117
Comments
Needing some time out from importing from WU so giving this some thought... I was thinking a solution might be extending
would drop the daily summary entries for 25 May 2016, 25 May 2016 to present inclusive and 25-28 May 2016 inclusive respectively. Similiarly:
would backfill the daily summary entries for 25 May 2016, 25 May 2016 to present inclusive and 25-28 May 2016 inclusive respectively. Is this the sort of solution you had in mind? I'll qualify my suggestion with the fact that my choice of parameter names often leaves a lot to be desired. |
Thinking out loud here... Because there is no point in dropping a set of dates without rebuilding them, it could be done in an all-in-one step. This also eliminates the possibility of dropping the dates and then forgetting to backfill them. Finally, I'd just attach the date to the rebuild command, resulting in $wee_database --rebuild-daily=2016/5/25-2016/5/28 |
Makes sense. Are you thinking there should be another command Been thinking about the process of dropping/rebuilding the daily summaries. When I have had to rebuild I have always blindly dropped the daily summaries and then rebuilt them. First thoughts on the equivalent process for rebuilding, say a few days of summaries, was to delete each row for each day in each daily summary table then perform a rebuild over the period concerned. Rebuilding is easy, Are there any corner cases where it will fall down? If there is a record for a given day in the daily sumamries, but the rebuild discovers no data in the (maybe new) archive for that day, I would expect the daily summaries to be filled with Guess I just want to get a process clear in my mind. |
No typo. The problem with In fact, I don't see why we can't get rid of No reason to delete first. Just use If the archive has changed enough that it has a new schema, then the daily summaries must be totally rebuilt. "Null" values in the daily summary are a bit subtle. Yes, it's BTW, see issue #61. I'd appreciate a second set of eyes looking at that one. |
Ok, well I guess I hold these thoughts. Accumulators did my brain a couple of years back when we were first putting together weewx-wd under v2.x. I will have a look at #61, not promising anything though :) |
Great feature to add ! Would it be worthwhile to also be able to drop/rebuild only 'selected' tables for the specified time period ? I don't have any rebuilding speed data to see if it would/wouldn't be significant. Typically folks just want to fix up their missing/bad data and rebuild the specified time period. If it's just a day or few days, maybe not worth it. Just a thought. |
Your suggestion would require a user to have a model of what data are affected, and which are not. That's a lot more subtle than just a range of data. It would also require a much more complicated command line (observation types would have to be specified). In the interest of keeping it simple, let's just stick with date ranges. |
agree for sure....thanks.... |
After mentioning this issue in #61 this morning I thought I would have another look as it seems a fairly simple fix...well sort of. I have reworked the All works well without using A bit pressed for time right now but I will drop the updated files in the |
Fixed in V3.7.0 |
Specifically, allow daily summaries only following a specific date to be deleted and rebuilt.
The text was updated successfully, but these errors were encountered: