-
I'm not sure if I've missed something but assuming I have a single trivial doc in my elasticsearch store: "_source": {
"content": "the queen of England is Elizabeth 2",
"content_type": "text",
"folder": "root",
"_split_id": 0
} This call takes around 2 seconds: filters = {'folder': 'root'}
document_store.delete_documents(filters=filters) Whereas the corresponding elastic search query:
{
"query": {
"bool": {
"must": [
{ "term": {"folder": "root" } }
]
}
}
} takes only 6 ms Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
thobson
Sep 5, 2022
Replies: 1 comment 3 replies
-
I think I might have worked out what's going on. It seems it's the Now I need to work out why wait_for is so slow... |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
thobson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I might have worked out what's going on.
It seems it's the
refresh_type='wait_for'
that's causing the issueNow I need to work out why wait_for is so slow...