Django-sharding

Latest version: v4.0.0

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.2.0

------------------

1.1.0

------------------

A bug fix and settings improvement

- Bugfix so that the `fields.py` file is importable when psycog2 isn't installed.
- Add the ability to set the database name in the settings helper, and override
the one in the url. Makes generating these settings programatically a bit easier.

1.0.0

------------------

Django 1.10 compatibility and some additional library features!

- Added decorator for shard storage.
- Renamed `PostgresShardGeneratedIDField` to `PostgresShardGeneratedIDAutoField`.
- Added non-autoid `PostgresShardGeneratedIDField` that makes a separate call to
the database prior to saving. Good for statement based replication. Now you can
have more than one of these fields on a model.
- Fix `TableShardedIDField` to take a table name rather than model class so that
it doesn't give errors when reading the migrations file after deleting the table.
- Fix `showmigrations` to use the same database param as `migrate` and act on
all by default.

0.1.0

------------------

Django 1.10 compatibility and some additional library features!

- Django 1.10 compatibility.
- Added postgres specific ID generator
- Some magic sharded field lookups (if you're so inclined)
- The above fields have the additional functionality to automatically lookup the shard when part of the save/update/filter clauses contain the information required to get the shard
- Alters the way data migrations run as far as which databases are acted upon as well as provides an override, see the docs for more details. This brings the package more inline with Django.

0.0.8

------------------

A few fixes for compatibility with python3 and using tox for testing

- Tested on pthon 2.7, 3.4 and 3.5

0.0.7

------------------

Small fix for django migrations

- The shards field is using sorted choices so that the migration is the same regardless of the machine.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.