> Does this happen on a warm searcher (are subsequent requests with no
intervening updates _ever_ fast?)?

Subsequent response times very fast if searcher remains open. As a control
test, I faceted on the same field that I used in the q param.

1. Start solr

2. Execute q=resultId:xxxxx&rows=0
=>      500ms

3. Execute q=resultId:xxxxx&rows=0&json.facet-on-resultId
=> 40,000ms

4. Execute q=resultId:xxxxx&rows=0&json.facet-on-resultId
=>      150ms

5. Execute q=processId:xxxxx&rows=0&json.facet-on-processId
=>   2,500ms

6. Execute q=processId:xxxxx&rows=0&json.facet-on-processId
=>     200ms


curl
'http://localhost:8983/solr/TestCollection_shard1_replica_t3/query?q=processId:xxxx-xxx-xxx-xxx-xxxxx&rows=0'
-d '
json.facet={
    categories:{
      "type": "terms",
      "field" : "processId",
      "limit" : 1
    }
}



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to