Grouping your results when you build the search wi...
# suitescript
s
Grouping your results when you build the search will make it run faster than getting them all and handling the grouping afterwards. As boban said, definitely set mainline to true to kick unecessary data points out.