-
Notifications
You must be signed in to change notification settings - Fork 919
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
Ability to set group.ngroups option #923
Conversation
.travis.yml
Outdated
before_install: gem install bundler | ||
before_install: | ||
- gem install bundler | ||
- gem install psych -v 2.2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@giovannelli can you explain why was this required?
looks great. I found only one question about |
Hi @serggl, Probably it was related to the concurrent-ruby version 1.1.1, they have just released a newer version. Thank you |
Thank you! |
Hi,
by default the Sunspot::Query::Group.to_params method has the group.ngroups option set to "true". If you don't need the total groups counter, ngroups=false increases performances, here's why we've added this option. Paginated collections return wrong values for total_pages, total_count and last_page? if ngroups is false.
Thank you,
Duccio