We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前是直接向日报请求,然后加个缓存。考虑以后是否存数据库,如果真这样,views 和 fetch 脚本都是要改的。
The text was updated successfully, but these errors were encountered:
先说明一下现在的状况:
fetch_data.py
总结一下就是,当天的日报是直接向日报发请求的,当天之前的是从数据库取。这样的做的原因,可能是由于早先时候的设计比较简单,是没有数据库使用的。但直接发请求的服务稳定性不好,日报 API 跪我这边就跪了,而且响应时间其实有点长。
现在的想法是,数据抓取方面的事务都交由 fetch_data.py 处理,而视图方面则统一从数据库里取。
Sorry, something went wrong.
No branches or pull requests
目前是直接向日报请求,然后加个缓存。考虑以后是否存数据库,如果真这样,views 和 fetch 脚本都是要改的。
The text was updated successfully, but these errors were encountered: