Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving data with different values for partitioned key crashed #40

Open
tayritenour opened this issue Aug 31, 2017 · 3 comments
Open

Saving data with different values for partitioned key crashed #40

tayritenour opened this issue Aug 31, 2017 · 3 comments
Assignees
Labels

Comments

@tayritenour
Copy link

Is this supposed to be functional? If, for example I have a Django model that is partitioned over date and one changes the date of that object such that it would cross a partitioning boundary (to go in the next month and therefore the next partition, say), shouldn't the object simply get saved in the new partition? This appears to not be supported and gives me an IntegrityError claiming to violate the check constraint of the date field. Should this be supported or is there some behind the scenes reason this doesn't work or assumption on how this library should be used that this use case violates? Thanks

@maxtepkeev maxtepkeev self-assigned this Aug 31, 2017
@maxtepkeev
Copy link
Owner

Hi, are you experiencing this behaviour with Postgres or Mysql ? Also, what version of Django do you use ?

@workybee
Copy link

We are using AWS RDS PostgreSQL server version 9.6 (some clients may be accessing with a v9.4 library)
Were on Django 1.6 (moving forward soon ;-)
Python 2.7

@maxtepkeev
Copy link
Owner

Hi, sorry, was on vacation, still didn't have time to check this, but there is #24 which sounds similar to your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants