Hello.
I start Elasticsearch in local machine.
Index "wbtm_cities"
Documents: 1.8k
Data: 66.3 MB
Total Shards: 1
Unassigned Shards: 0
Fields:
http://take.ms/0haXq
http://take.ms/am2mS
I do query:
GET wbtm_cities/doc/_search
{
"query": {
"bool": {
"filter": [
{
"term": {
"domain": "site.ru"
}
},
{
"term": {
"is_big": "1"
}
}
]
}
},
"from": 0,
"size": 200,
"_source": {
"includes": [
"name",
"slug",
"declension_rus"
]
}
}
Speed first query in kibana: 7-65 ms - http://take.ms/xNIF1, http://take.ms/YFpue
In second time kibana return 1ms
But then I use Python requests speed low: 200-300ms
1800 document it no many to slow query
- Why first Kibana connection is slow?
- Why python requests is slow?