The collapse field is high-cardinality field. I haven't profiling yet but will do it.
Thanks, Tien On Tue, May 23, 2017 at 9:48 PM, Erick Erickson <erickerick...@gmail.com> wrote: > How many unique values in your group field? For high-cardinality > fields there's quite a bit of bookkeeping that needs to be done. > > Have you tried profiling to see where the CPU time is being spent? > > Best, > Erick > > On Tue, May 23, 2017 at 7:46 AM, Nguyen Manh Tien > <tien.nguyenm...@gmail.com> wrote: > > Hi All, > > > > I recently switch from solr field collapse/expand to grouping for > collapse > > search result > > All seem good but CPU is always high (80-100%) when i set param > > group.ngroups=true. > > > > We set ngroups=true to get number of groups so that we can paginate > search > > result correctly. > > Due to CPU issue we need to turn it off. > > > > Is ngroups=true is expensive feature? Is there any way to prevent CPU > issue > > and still have correct pagination. > > > > Thanks, > > Tien >