django-sharding icon indicating copy to clipboard operation
django-sharding copied to clipboard

A sharding library for Django

Results 31 django-sharding issues
Sort by recently updated
recently updated
newest added

I've tried migrated 32-bit id field to PostgresShardForeignKey And got error: ``` django.db.utils.ProgrammingError: syntax error at or near "DEFAULT" LINE 1: ...sages_conversation" ALTER COLUMN "id" TYPE bigint DEFAULT ne... ```...

Hi. `Model.objects.update_or_create(key_field=key_value, defaults={})` is not routed automatically, when value existed. The reason is in it's realization: ```Python def update_or_create(self, defaults=None, **kwargs): """ Looks up an object with the given kwargs,...

Hi. When I create data with `Model.objects.bulk_create([Model(sharding_id=shard_model_id, ...)])` is automatical routing working?

https://github.com/JBKahn/django-sharding/blob/master/README.md contains error in "Create Your First Sharded Model" section. `@model_config(sharded=True)` has no parameter `sharded` in latest version of library.

Hey. In my test app I want to shard by `ShardingApp` model. And split `ShardedUser` into multiple database shards. Here is the code, I expected to work: ```Python @model_config(database='default') class...

ModBucketingStrategy uses `hash()` function which returns different results across different processes.

When the model_config is configured like below, the router is always sending `None` from method `db_for_read`. It uses hints to get the shard, but its always `{exact_lookups = {}}` ```python...

I finished a sqlite version: ```python from itertools import cycle from datetime import datetime import pytz def create_function_for_sharded_id(shard_id): get_next_seq_id = cycle(range(1024)) og_epoch_datetime = datetime.utcfromtimestamp(0).replace(tzinfo=pytz.utc) epoch_datetime = datetime(2016, 10, 19, 17,...

They added code for me in 1.10.3 and made a mistake in the release. New bug tracked here: https://code.djangoproject.com/ticket/27200