Why Elasticsearch 1.7.3 is faster 20% than 1.7.5?


#1

Why Elasticsearch 1.7.3 is faster 20% than 1.7.5 ?

Absolutely the same config and index data, 30 queries in loop:
1.7.3 - 34s
1.7.5 - 47s

I wanted to upgrade to 2.4 but it even slower. New 5 version too.
So, performance degrade, so strange.


(Adrien Grand) #2

What do the queries look like?


#3

Like this:

          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "must_not": [{"match": {"text": "porn"}}]
                  "should" : [
                                {"match" : { "text" : {"query" : '\"apple ipod\"~4', "_name" : "first"} }},
                                {"match" : { "text" : {"query" : '\"ai bot\"~4', "_name" : "first"} }}, 
                                {"match" : { "text" : {"query" : "google", "_name" : "last"} }}, 
                                 ....here go a lot of other match queris......
                            ],                    
                }
              },
              #"filter": {"terms": {"from_id": "-46461134"}}
            }
          },
          "aggs" : {
            "per_tag": {
              "terms": {"field": "from_id"},
    
            }
          }
        }

(Adrien Grand) #4

Looking at the changelog, a difference between 1.7.3 and 1.7.5 is quite unexpected so I suspect something like the 1.7.5 instance had a colder FS/filter cache than the 1.7.3 instance.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.