跟踪每个网页的印象/访问 [英] Tracking impressions/visits per web page

查看:105
本文介绍了跟踪每个网页的印象/访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,每个公司都有多个页面,我想根据进入此个人资料的人数来显示其页面的效果.

I have a site with several pages for each company and I want to show how their page is performing in terms of number of people coming to this profile.

我们已经确保不包括漫游器.

We have already made sure that bots are excluded.

当前,我们正在使用插入(对于一天中的第一个请求到配置文件)或更新(对于一天中的下一个请求)记录数据库中的每个匹配.但是,考虑到请求已从每天几千个增加到每天数万个,这些插入/更新会引起严重的性能问题.

Currently, we are recording each hit in a DB with either insert (for the first request in a day to a profile) or update (for the following requests in a day to a profile). But, given that requests have gone from few thousands per days to tens of thousands per day, these inserts/updates are causing major performance issues.

假设没有JS解决方案,那么解决此问题的最佳方法是什么?

Assuming no JS solution, what will be the best way to handle this?

我正在使用Ruby on Rails,MySQL,Memcache,Apache,HaProxy进行整体表演.

I am using Ruby on Rails, MySQL, Memcache, Apache, HaProxy for running overall show.

任何帮助将不胜感激.

Thx

推荐答案

http://www.scribd.com/doc/49575/Scaling-Rails-Presentation-From-Scribd-Launch 您应该从幻灯片17开始阅读. 我认为,如果有可能为如此庞大的网站构建这样的解决方案,那么性能并不是问题.

http://www.scribd.com/doc/49575/Scaling-Rails-Presentation-From-Scribd-Launch you should start reading from slide 17. i think the performance isnt a problem, if it's possible to build solution like this for website as big as scribd.

这篇关于跟踪每个网页的印象/访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆