What's more efficient - storing logs in sql database or files?

后端 未结 9 1522
暗喜
暗喜 2020-12-15 03:30

I have few scripts loaded by cron quite often. Right now I don\'t store any logs, so if any script fails to load, I won\'t know it till I see results - and even when I notic

9条回答
  •  长情又很酷
    2020-12-15 03:55

    Speed isn't everything. Yes, it's faster to write to files but it's far faster for you to find what you need in the logs if they are in a database. Several years ago I converted our CMS from a file-based log to a Mysql table. Table is better.

提交回复
热议问题