开发者

Difference between getElapsedTime() and getQTime() in solr for java

开发者 https://www.devze.com 2023-01-31 04:02 出处:网络
I\'m u开发者_StackOverflow中文版sing Solr for Java and want to know what is the difference betweengetElapsedTime() and getQTime(), after optimization solr indexes I\'m confused which one is for what.

I'm u开发者_StackOverflow中文版sing Solr for Java and want to know what is the difference between getElapsedTime() and getQTime(), after optimization solr indexes I'm confused which one is for what.

   SolrServer solrObject = _JpaTemplate.getSolrServerForCore(Constants.SOLR_CORE1);
   UpdateResponse sorlResponse = solrObject.optimize();
   System.out.print(sorlResponse.getElapsedTime());
   System.out.print(sorlResponse.getQTime());


I'm pretty sure the QTime is the time it takes for the query to execute in Solr whereas the Elapsed Time is the total time taken including the transmission and serialization / deserialization of the results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号