In the past few days I have learned that scripts are expensive. I was using
scripts in term facets and that would give me horrible performance as
compared to using terms facet with forming a term similar to what the
script would produce and push it in ES at the time of indexing documents.
Although there are cases where I really don't think there is way for me to
avoid using scripts. I am not using scripts in facets but I do need them at
the time of updating documents. The rate at which I am updating documents
is pretty high as well.
By default ES comes with MVEL as the default scripting language. But there
are scripting plugins for Javascript, Groovy and Python as well. My
question is which should I use for performance? As in which plugin has the
fastest script evaluation and execution engine (in context of ES)?
Looking forward to some valuable inputs on this one.
In the past few days I have learned that scripts are expensive. I was using scripts in term facets and that would give me horrible performance as compared to using terms facet with forming a term similar to what the script would produce and push it in ES at the time of indexing documents.
Although there are cases where I really don't think there is way for me to avoid using scripts. I am not using scripts in facets but I do need them at the time of updating documents. The rate at which I am updating documents is pretty high as well.
By default ES comes with MVEL as the default scripting language. But there are scripting plugins for Javascript, Groovy and Python as well. My question is which should I use for performance? As in which plugin has the fastest script evaluation and execution engine (in context of ES)?
Looking forward to some valuable inputs on this one.
From what we've measured providing script in native java is way faster than
mvel.
Greets,
Andrej
Am Mittwoch, 27. November 2013 12:48:20 UTC+1 schrieb Vaidik Kapoor:
Hey folks,
In the past few days I have learned that scripts are expensive. I was
using scripts in term facets and that would give me horrible performance as
compared to using terms facet with forming a term similar to what the
script would produce and push it in ES at the time of indexing documents.
Although there are cases where I really don't think there is way for me to
avoid using scripts. I am not using scripts in facets but I do need them at
the time of updating documents. The rate at which I am updating documents
is pretty high as well.
By default ES comes with MVEL as the default scripting language. But there
are scripting plugins for Javascript, Groovy and Python as well. My
question is which should I use for performance? As in which plugin has the
fastest script evaluation and execution engine (in context of ES)?
Looking forward to some valuable inputs on this one.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.