河北理工大学官网招标:基于XML的网站计数器的性能问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 09:08:08
现在忽然流行起用XML来做网站计数器了,我一直有个疑问,那就是同基于数据库的计数器相比,其性能到底如何?
计数器是需要频繁连、写、断数据库的(对XML而言当然就是频繁的读、写、关XML文件)。
当然,对访问量不大的小网站来说,两者应该没什么差别,但对于大中型网站呢?比如日访问量在数万IP,或同时可能有上千人在线的网站,XML计数器的效率又如何?
---------
挂在这里几天了,无人能回答,看来可以交流的高手寥寥啊……

Because the counter calculate the stream via DB,that will waste the resource of DB.Is that right?

And the counter do that via editting of XML.And the DB import the XML to itself,just update the XML documents.That will not flush the table of DB frequently.That will curtail the consumption & options of DB.

So the industrial DB have held the feature which process the XML documents.e.g. MySQL/MsSQL and soforth

xml对于大型的计数肯定优于普通数据库。