Log to file via PHP or log to MySQL database - which is quicker?

前端 未结 15 1568
故里飘歌
故里飘歌 2021-02-03 11:07

I have a database driven website serving about 50,000 pages.

I want to track each webpage/record hit. I will do this by creating logs, and then batch processing the logs

15条回答
  •  眼角桃花
    2021-02-03 11:21

    As others mentioned - it depends on lots of things such as traffic, disk speed, etc. You'll have to test both the scenarios.

    While testing MySQL, try both MyISAM and INNODB. In theory, Innodb will perform better as it has row level locking.

提交回复
热议问题