简体   繁体   English

对于统计系统,在MySQL中有什么更好的方法:InnoDB,Archive或MyISAM?

[英]For a stats systems what's better in MySQL: InnoDB, Archive or MyISAM?

I want to store all accesses to a webpage with user-agent, script-execution-time, request-uri, full referer and some more variables. 我想使用用户代理,脚本执行时间,request-uri,完整引用以及更多变量来存储对网页的所有访问

What I have been doing is use normalized MyISAM tables like: 我一直在做的是使用标准化的MyISAM表,例如:

stats
stats_user_agents
stats_referers
stats_requested_uris

But in a normal webpage this takes some SELECT's and 1 INSERT . 但是在正常的网页中,这需要一些SELECT1 INSERT

It's better use ARCHIVE tables? 最好使用ARCHIVE表?

The stats records will be from 0 to some millions. 统计记录从0到几百万。

There's some basic comparisons here between isam, compressed isam, archive and innodb engines. 有一些基本的比较这里 ISAM,压缩ISAM,归档和InnoDB引擎之间。

Short answer is ISAM is fastest for storing, retrieving and slicing the data. 简短的答案是,ISAM是存储,检索和切片数据的最快方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM