Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
This ticket should be done after https://issues.apache.org/jira/browse/JAMES-2078.
On our mapping we use nested for header, from, cc, bcc. We know theoretically that nested do reduce performance (creation of invisible document to handle nested value) so when possible object should be used instead.
In a first time, you should monitor how important the performance is. If the performance lost introduced by nested is significant then, you should estimate and found a work around about the lost of information see:
- https://www.elastic.co/guide/en/elasticsearch/reference/2.2/nested.html
- https://www.elastic.co/guide/en/elasticsearch/reference/2.2/object.html
For the moment, we think this lost of information is not a issue for FROM, CC, BCC.
But for sure, it will be a issue for headers. A way to work arround it would be to transform the following:
{ headers: [
, {key: "key2", value: "something"}}
To that:
But reflexion need to be done too see if this will work for the kind of query we need to do in the headers.