Re: Why is has_parent so slow? and can anything be done?

2015-03-03 Thread Perryn Fowler
Hi Martin, Thanks very much for your help. The final product will be indexing new documents at the same time as querying, but thus far for my performance trials I am performing queries/aggs only. I assume therefore that enabling eager global ordinals would not help with the performance issues I

Re: Why is has_parent so slow? and can anything be done?

2015-03-03 Thread Martijn v Groningen
Are you also adding/modifying documents while searching with has_parent or has_child query? In that it makes sense to enable global ordinals loading on the _parent field: http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/parent-child-performance.html#_global_ordinals_and_latency

Re: Why is has_parent so slow? and can anything be done?

2015-03-02 Thread Perryn Fowler
Further investigation shows that anything that makes use of _parent seems to result in slow queries, be it has_parent, has_child or the 'children' aggregation. I should mention that I am using 1.4.4 - is this to be expected even with the performance improvements made in recent releases? On Mon,

Why is has_parent so slow? and can anything be done?

2015-03-01 Thread Perryn Fowler
Hello, I am writing an analytics application that makes heavy use of aggregations. My situation seems suited to parent/child. I have relatively few parents (hundreds) and a lot more children (tens of millions). The has_parent query or filter provide an elegant way to perform the sort of queries