If the result set of a jcr query is large, then the loading the complete set and checking ACLs on them is quite expensive.
To remedy this, limit the fetch size to low value
By default, the query builder json servlet displays 10 hits. Adding the parameter of p.limit=-1allows the servlet to show the entire query result
p.limit impacts only the # of results returned at a time.