-- Quick question that I didn't find in your documentation. When documents are requested directly by their _id, is that operation an O(1) operation?
Conversation
not sure the O notation makes much sense in a distributed system. you'll have a mix of network hops (coordinating node, primary / replica shard), memory and potentially disk access
the question might make more sense for lucene. blog.mikemccandless.com/2014/05/choosi is a great starting point
1
That's a good point but I was curious from the standpoint of having one node and searching on that node. It's probably a better question to direct at Lucene. I was going to check with the Lucene team anyway on this: discuss.elastic.co/t/sorting-by-t
The sort index feature is awesome, but
it seems odd that it is so much slower if the sort is in the opposite direction.
Thanks for your help!
1
Generally there are so many optimizations in Lucene that an O notation might depend on a lot of factors (like the structure of the ID). Index sorting is another special case but I'm surprised by your outcome. I'd have expected it to be similar (without knowing the code)
1
1
Show replies

