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

Values larger than 1/3 of a buffer page cannot be indexed. #650

Closed
TG1999 opened this issue Mar 21, 2022 · 3 comments
Closed

Values larger than 1/3 of a buffer page cannot be indexed. #650

TG1999 opened this issue Mar 21, 2022 · 3 comments

Comments

@TG1999
Copy link
Contributor

TG1999 commented Mar 21, 2022

#632 (comment)

@TG1999
Copy link
Contributor Author

TG1999 commented Mar 23, 2022

A possible solution that I got https://stackoverflow.com/questions/41971217/values-larger-than-1-3-of-a-buffer-page-cannot-be-indexed-django-error, although this is Postgres specific not Django specific

@TG1999
Copy link
Contributor Author

TG1999 commented Mar 24, 2022

As per suggestion from @pombredanne

import hashlib

     def save(self, *args, **kwargs):
        if self.summary:
            self.summary_md5 = hashlib.md5(self.summary.encode('utf-8')).hexdigest()
        super().save(*args, **kwargs)

we could use something like this to hash our summaries

@pombredanne
Copy link
Collaborator

#653 has been merged. Thanks!

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

2 participants