Using xdebug, i see that loading any page - (maybe just page with views, not sure) - will call drupal_http_request with this: http://localhost:8983/solr/admin/luke?numTerms=1&wt=json and adds about 8 seconds to my page load time, as well as other functions that add a few more seconds. This is when I don't even have any views on the page that use solr.

BTW, there is about 200,000 indexed items in the solr index.

CommentFileSizeAuthor
#5 1327876-5.patch495 bytespwolanin

Comments

ygerasimov’s picture

Please advise how to reproduce this bug? Have you created any view to apachesolr index and after that you have this big delay?

ygerasimov’s picture

Status: Active » Closed (cannot reproduce)

Closing issue as cannot reproduce the problem.

pwolanin’s picture

Status: Closed (cannot reproduce) » Active

Sending numTerms > 0 is a severe, severe performance hit for large indexes.

I don't see any reason to set it to 1 rather than 0 here?

pwolanin’s picture

Priority: Normal » Critical

You only need to have numTerms > 0 if you are using from the response $field->distinct or $field->topTerms

In the apachesolr module we never make a request for > 0 if there are more than variable_get('apachesolr_luke_limit', 20000); docs in the index.

given that the apachesolr_views module doesn't use the top terms or number of terms, there is no reason for it to not be 0.

pwolanin’s picture

StatusFileSize
new495 bytes

This trivial patch should fix the issue.

nick_vh’s picture

Status: Active » Fixed

Fixed in 7.x-1.x

nick_vh’s picture

Fixed in 7.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.