Skip to main content

A Django extension that supports PostgreSQL 11 time ranges and list partitioning.

Project description

https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square https://img.shields.io/badge/Django-2.x-green.svg?style=flat-square&logo=django https://img.shields.io/badge/PostgreSQL-11-lightgrey.svg?style=flat-square&logo=postgresql https://readthedocs.org/projects/django-pg-partitioning/badge/?version=latest&style=flat-square https://img.shields.io/pypi/v/django-pg-partitioning.svg?style=flat-square https://api.travis-ci.org/chaitin/django-pg-partitioning.svg?branch=master https://api.codacy.com/project/badge/Grade/c872699c1b254e90b540b053343d1e81 https://codecov.io/gh/chaitin/django-pg-partitioning/branch/master/graph/badge.svg

一个支持 PostgreSQL 11 原生表分区的 Django 扩展,使您可以在 Django 中创建分区表并管理它们。目前它支持两种分区类型:

  • 时间范围分区(Time Range Partitioning):将时序数据分开存储到不同的时间范围分区表中,支持创建连续且不重叠的时间范围分区并进行归档管理。

  • 列表分区(List Partitioning):根据分区字段的确定值将数据分开存储到不同的分区表中。


A Django extension that supports PostgreSQL 11 native table partitioning, allowing you to create partitioned tables in Django and manage them. Currently it supports the following two partition types:

  • Time Range Partitioning: Separate time series data into different time range partition tables, support the creation of continuous and non-overlapping time range partitions and archival management.

  • List Partitioning: Store data separately into different partition tables based on the determined values of the partition key.

Documentation

https://django-pg-partitioning.readthedocs.io

https://raw.githubusercontent.com/chaitin/django-pg-partitioning/master/docs/source/_static/carbon.png

TODO

  • Improve the details of the function.

  • Improve documentation and testing.

  • Optimization implementation.

maybe more…

Contributing

If you want to contribute to a project and make it better, you help is very welcome! Please read through Contributing Guidelines.

License

This project is licensed under the MIT. Please see LICENSE.

Project Practice

https://raw.githubusercontent.com/chaitin/django-pg-timepart/master/docs/source/_static/safeline.svg?sanitize=true

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-pg-partitioning-0.11.zip (18.9 kB view details)

Uploaded Source

File details

Details for the file django-pg-partitioning-0.11.zip.

File metadata

  • Download URL: django-pg-partitioning-0.11.zip
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for django-pg-partitioning-0.11.zip
Algorithm Hash digest
SHA256 5f23cd0b282a63a3a1ca31867e99a5994b39294f67cca7a1dd9150932ae6dcf6
MD5 2923a4409602811cc72dabdff4c9c80c
BLAKE2b-256 dd511030fbdd6bc64fab059b88a59eeddba4038619c6b978c5bf02b4925e8128

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page