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

unique_keys doesn't work for buffered data #107

Open
jfilter opened this issue Sep 1, 2020 · 0 comments
Open

unique_keys doesn't work for buffered data #107

jfilter opened this issue Sep 1, 2020 · 0 comments

Comments

@jfilter
Copy link

jfilter commented Sep 1, 2020

The whole idea around unique_keys=["col"] doesn't work for buffered rows. Since not all modifications are committed directly to the database, this make the unique constraint working unreliably.

To make it work, you have to commit transactions manually after each modification.

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

No branches or pull requests

1 participant