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

前端 未结 7 839
鱼传尺愫
鱼传尺愫 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 08:10

    For the volume of data you're looking at splitting the data seems like a lot of trouble for little gain. Postgres can do partitioning, but the fine manual [1] says that as a rule of thumb you should probably only consider it for tables that exceed the physical memory of the server. In my experience, that's at least a million rows.

    1. http://www.postgresql.org/docs/current/static/ddl-partitioning.html

提交回复
热议问题