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

Cached model keys: use a non-collidable hash for non-int64 and composite primary keys #23

Open
jfilby opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request orm
Milestone

Comments

@jfilby
Copy link
Owner

jfilby commented Jul 27, 2022

Right now the cached model key is whatever type of the primary key is. Composite primary keys use tuples.

This could be inefficient for non-int64 primary keys.

@jfilby jfilby added enhancement New feature or request orm labels Jul 27, 2022
@jfilby jfilby modified the milestones: v0.1.4, v0.1.5, v0.2.2 Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request orm
Projects
None yet
Development

No branches or pull requests

1 participant