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

Integrating kaminari with identity_cache #364

Open
srebalaji opened this issue Feb 19, 2018 · 1 comment
Open

Integrating kaminari with identity_cache #364

srebalaji opened this issue Feb 19, 2018 · 1 comment

Comments

@srebalaji
Copy link

Hi,
I'm trying to integrate kaminari with identity_cache. As the fetch_ method returns the records in Array I can't able to restrict the records on page-wise. Any good practices to implement it.

Thank you

@dylanahsmith
Copy link
Contributor

IdentityCache's cache_has_many associations are meant to be used with relatively small bounded associations, since the result of loading the whole association is stored as a single cache blob.

To integrate with a paginator, we load the ids from the database, then fetch the full records using the ids from IdentityCache.

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