douguachan2879 2014-06-22 08:45
浏览 82
已采纳

将配置存储在文件或数据库中更好吗? [关闭]

I'm currently working on a project that uses MySQL for configuration, but now I'm starting to think it could slow down page loads.

So my question is, would it be better to store configuration options (that are read almost every page load) inside an XML/JSON file, or a MySQL database?

Thanks.

  • 写回答

2条回答 默认 最新

  • dsznndq4912405 2014-06-22 09:00
    关注

    One thing to conside is how much config data there is, and perhaps how often it is likely to change. If the amount of data is small, then saving this in a database (if your not already using a db for anything else), would be overkill, equally maintaining a db for something that gets changed once every 6 months would probably be a waste of resources.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 matlab计算中误差
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊