I am investigating performance impact of long fields name in document
example created_timestamp_field1 vs ctf1 Q1) Which is preferred or best practice for field value and is there
any performance / storage benefit?
*
*
Also is there any impact of storing date as long or in some format
example 0000 vs 1 Jan 1970 00:00:00.
date is eventually converted in long so not sure there is any impact of it
in performance or storage Q2) Is there any impact of using any of the above date value?
*
*
Thanks
-Maaz
On Monday, July 29, 2013 5:29:45 PM UTC+5, Maaz Bin Tariq wrote:
Hi
I am investigating performance impact of long fields name in document
example created_timestamp_field1 vs ctf1 Q1) Which is preferred or best practice for field value and is there
any performance / storage benefit?
*
*
Also is there any impact of storing date as long or in some format
example 0000 vs 1 Jan 1970 00:00:00.
date is eventually converted in long so not sure there is any impact of it
in performance or storage Q2) Is there any impact of using any of the above date value?
*
*
Thanks
-Maaz
A1) may a little storage benefit when _source is stored (default).
IMHO, the more sense you give to a field using its field name, the better readabilty you will get when maintening your application.
Also, depending to your use case, users (experts) could have access to query parser and use notation like field:value.
In that case, having some meaning in field naming could help.
A2) dates are converted to ms since epoch. I don't think you should worry about it.
HTH
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
On Monday, July 29, 2013 5:29:45 PM UTC+5, Maaz Bin Tariq wrote:
Hi
I am investigating performance impact of long fields name in document
example created_timestamp_field1 vs ctf1
Q1) Which is preferred or best practice for field value and is there any performance / storage benefit?
Also is there any impact of storing date as long or in some format
example 0000 vs 1 Jan 1970 00:00:00.
date is eventually converted in long so not sure there is any impact of it in performance or storage
Q2) Is there any impact of using any of the above date value?
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.