pysolr is taking time first time after the solr restart. Scenario is like this. 1)Restart Solr server 2)Execute the query directly in solr is taking 4 sec 3)when we are trying to execute the same query using pysolr, it is taking 300 seconds or more for the first time. After refreshing it is taking only less than 2 sec.
When I check the pysolr code the time is taking in the below code.
resp = requests_method(url, data=bytes_body, headers=headers, files=files,
timeout=self.timeout, auth=self.auth)
4)Can anybody help me in getting the out faster first time also. I think this abnormal because executing the query directly in Solr is taking very few seconds.