Database speed optimization: few tables with many rows, or many tables with few rows?

前端 未结 7 845
鱼传尺愫
鱼传尺愫 2021-01-19 07:23

I have a big doubt.

Let\'s take as example a database for a whatever company\'s orders.

Let\'s say that this company make around 2000 orders per month, so, a

7条回答
  •  北海茫月
    2021-01-19 07:56

    Before you worry about query speed, consider the costs.

    If you split the code into separate code, you will have to have code that handles it. Every bit of code you write has the chance to be wrong. You are asking for your code to be buggy at the expense of some unmeasured and imagined performance win.

    Also consider the cost of machine time vs. programmer time.

提交回复
热议问题