2

我想做类似于stackoverflow的访问者跟踪..

通过阅读大量帖子,我已经弄清楚了一些细节:

  • 每 15 分钟仅计算 1 个 IP 命中(如果匿名)
  • 仅计算 1 个唯一用户登录(每天?)

现在留下了真正实施的问题..

我是否应该将这两个因素记录到表中(并增加计数)

| 知识产权 | 时间戳 | 网页网址 |

或者在之后进行计数(例如使用 IIS 日志文件 - 不包括用户,对吗?

我知道外面有一些类似的帖子,但在我看来,NONE 确实有一个很好的解决方案..

4

2 回答 2

0

I don't think you can discuss business logic of yours. Its up to you how you want it to be. I'd say, define what you call "unique user" and build your algorithm around it.

With regards to your question here, you will get a lot of opinions, but there's no right answer to your question.

My opinion: I would go with the table, combination of registered users and IP tracking for anonymous ones, so option one from your list.

For what its worth - that's is my take on it. Thanks.

于 2012-09-24T15:36:44.730 回答
0

我会建议一张桌子。添加用户列以跟踪其是登录用户还是匿名用户。除非您想保留历史记录,否则我建议您在一天结束时清理表格以保持快速搜索。

于 2012-09-24T19:06:04.590 回答