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

Add pagination and fix N+1 query issue for People index #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

esteres
Copy link

@esteres esteres commented Jan 21, 2025

  • Introduced pagination using Kaminari for the People index (10 entries per page) and fixed an N+1 query issue by eager loading Companies with People for better performance.

  • Improve view spec for index view, not pretending to test pagination here, but at least making sure its present when we have more than 10 records

Note: Didn't include any addition/improvement to feature spec here due to the kind of changes done, no much user interaction to be tested, besides loading index page.

Screenshot:

Screenshot 2025-01-21 at 12 11 27 AM

@esteres esteres force-pushed the fix/performance-issues branch from cdc7b79 to deca0d6 Compare January 21, 2025 13:01
@esteres esteres force-pushed the fix/performance-issues branch from deca0d6 to 30545ac Compare January 21, 2025 23:18
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

Successfully merging this pull request may close these issues.

1 participant