Skip to content
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

Clear old weather data from database #16

Closed
pawelmalak opened this issue Jun 9, 2021 · 0 comments · Fixed by #21
Closed

Clear old weather data from database #16

pawelmalak opened this issue Jun 9, 2021 · 0 comments · Fixed by #21
Assignees
Labels
🔨 Feature New feature or request
Milestone

Comments

@pawelmalak
Copy link
Owner

Right now, every 15 minutes request to the external API is made to get weather data. Data is then saved to the local database to reduce number of calls to the api, reduce latency and provide access to latest weather data even if api is not responding.

There should be a cron job that would run every few hours to delete all previous entries except the latest one.

@pawelmalak pawelmalak added the 🔨 Feature New feature or request label Jun 9, 2021
@pawelmalak pawelmalak added this to the Version 1.2 milestone Jun 9, 2021
@pawelmalak pawelmalak self-assigned this Jun 9, 2021
@pawelmalak pawelmalak linked a pull request Jun 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant