Postgresql Table Partitioning Django Project

后端 未结 3 2358
轻奢々
轻奢々 2021-02-20 14:44

I have a Django 1.7 project that uses Postgres 9.3. I have a table that will have rather high volume. The table will have anywhere from 13million to 40million new rows a month.

3条回答
  •  天命终不由人
    2021-02-20 14:55

    You can use Architect application for Postgresql Table Partitioning Django Project

    PostgreSQL’s partitioning implementation in Architect is done purely at the database level. That means that Architect creates several triggers and functions and inserts them directly into the database, so even if you issue direct insert statement from database console and not from the ORM, everything will work as expected and record will be inserted into the correct partition, if partition doesn’t exist, it will be created for you automatically. Also partitions may be created in any order and not only from lower to higher.

    It's new version of old Django DB Parti application

提交回复
热议问题