Skip to main content

A Django app to sharding databases.

Project description

Simple horizontal scaling utilities for django framework

  • Short def:
    • Scalability is the property of a system to handle a growing amount of work by adding resources to the system

    • Scaling horizontally (out/in) means adding more nodes to (or removing nodes from) a system, such as adding a new computer to a distributed software application. An example might involve scaling out from one web server to three.

    • With horizontal-scaling it is often easier to scale dynamically by adding more machines into the existing pool

This simple package allows the developer to add more than one table to one Model, each table limited by the maximum rows specified in settings.py

How django-sharding work

  • Every Model has its own database and you can use 1 database for more than one model

  • Every table has new id as premairy key (nid)

  • nid is uuid but the first 8 charter are fixed and it used as prefix

  • every prefix is specific to database key

  • every database can spilt by row count max

  • sharding django create a table for databases and register number of rows.

Installation

run pip install django-horizontal-sharding

to read configuration and use guide visit: https://github.com/Fethienv/django-sharding

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-horizontal-sharding-0.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-horizontal-sharding-0.2.tar.gz.

File metadata

  • Download URL: django-horizontal-sharding-0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for django-horizontal-sharding-0.2.tar.gz
Algorithm Hash digest
SHA256 3bb68c982fb7ff598c43e1e6905b81a63ba396553f423c608d59e3f0f681f9ac
MD5 231c69ba7f1deea277835816eb0c0b41
BLAKE2b-256 cefa7d580e559359589f6d7ab245bd271b92fb4fc6f0075cc03b2682d8a95829

See more details on using hashes here.

Supported by

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