doumao1047 2011-01-18 19:59
浏览 19
已采纳

服务器负载数据库与文件操作

I am trying to figure out which bears a heavier load on a system:

  • A database operation
  • OR a File operation (AKA reading an XML file)

Thanks in advance!

  • 写回答

2条回答 默认 最新

  • dongmibeng5885 2011-01-18 20:09
    关注

    Usually file operations are slower than DB operations.

    If you want to store a data collection in an XML file (ie. an XML database) I would unrecommend it, strongly. DBMSs implement lots of performance optimizations via indexes and caches: most of DB data is held in memory.

    If you want to write large payloads to DB columns, it's not more efficient than having a column that points to a file and store the raw data inside the file.

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

报告相同问题?

悬赏问题

  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀
  • ¥50 求解vmware的网络模式问题 别拿AI回答