简体   繁体   中英

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.

What I have been doing is use normalized MyISAM tables like:

stats
stats_user_agents
stats_referers
stats_requested_uris

But in a normal webpage this takes some SELECT's and 1 INSERT .

It's better use ARCHIVE tables?

The stats records will be from 0 to some millions.

There's some basic comparisons here between isam, compressed isam, archive and innodb engines.

Short answer is ISAM is fastest for storing, retrieving and slicing the data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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