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

Slow N+1 query #80

Closed
rasaffie opened this issue Mar 11, 2017 · 0 comments · Fixed by grepp/unread#1 · May be fixed by #95
Closed

Slow N+1 query #80

rasaffie opened this issue Mar 11, 2017 · 0 comments · Fixed by grepp/unread#1 · May be fixed by #95

Comments

@rasaffie
Copy link

The method 'mark_array_as_read' has a N+1 query when creating read_marks for multiple readables.

Wrapping the 'save!' method of all objects in a single transaction could speed up the process.

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