浏览数统计写配额优化 #16

Closed
88250 opened this Issue Jun 11, 2012 · 1 comment

Projects

None yet

1 participant

@88250
Member
88250 commented Jun 11, 2012

浏览数统计是使用异步方式计数的:https://code.google.com/p/b3log-solo/issues/detail?id=308#c11

通过这段时间的观察,发现写配额还是容易超。需要进一步想办法优化。

@88250 88250 was assigned Jun 11, 2012
@88250
Member
88250 commented Jul 16, 2012
  1. 目前写配额容易超,是因为定时浏览统计时调用写入操作过多,Issue #44 进行优化
  2. 定时任务在写库时考虑丢弃一些文章。定时任务每次从缓存中最多随机选择 30 篇文章,保存这 30 篇文章的浏览量
@88250 88250 closed this Jul 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment