Giter Club home page Giter Club logo

bcjh-bot's People

Contributors

2015wuji01 avatar bildex avatar billdex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

2015wuji01

bcjh-bot's Issues

更新过程可观测可终止

更新执行流程比较长,无法即时得到反馈,每次需要查看更新状态都需要去服务器看日志,非常麻烦。
需要提供以下两项功能:

  1. 可查询更新状态,了解当前更新进度
  2. 可中途终止更新,方便在源数据下载过慢时更换数据源

如何部署嗷呜

各位大佬 有时间的时候可以写一下如何部署嗷呜吗。一个嗷呜倒下了千万个嗷呜支棱起来了 :D

需要优化更新数据速度

随着内容的增加,每次更新数据花费的时间越来越久,现在执行一次全量更新需要10-20分钟,有必要优化一下更新数据性能了

初步评估后,当前可优化的耗时较长项目的有如下:

  • 后厨合成菜谱数据,耗时约7s 。图鉴网的数据没有对后厨菜进行直接的数据关联,数据处理主要耗时在查库和写库方面,可以优化读写过程,减少对数据库的操作。
  • 厨师 (4-6min) 菜谱 (5-8min) 厨具 (2-3min) 。观察运行时性能监控(宿主机实例为2c4g),可以发现在图片更新过程中, cpu与内存 的资源使用率仍然是较低的状态(cpu 低于20%,内存约250M), 可以适当调整更新过程的执行顺序,充分利用并发性能,提高资源利用率与图片绘制速度。同时在该过程中存在多个查询数据库的操作,可以将该部分数据提前缓存,减少数据库 IO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.