Long attribute names waste space?


(Jim Fox) #1

Do long document attribute names waste space? If I use:

{ "member_id":"some_id", "member_group_reference": "some ref"}

would that more efficiently indexed and stored if I use

{ "id":"some_id", "gr": "some ref"}

instead?

Thanks,

Jim

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Jörg Prante) #2

Not the field names are indexed and stored, but the values.

So, no, all in all, you do not waste space. There is a slight overhead in
large _source fields if you mean that, but that is neglectable, when you
use compression, which is turned on by default.

Jörg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Itamar Syn-Hershko) #3

You might save a few bytes, but end up with no hair after long debugging
session sometime in the future, trying to figure out what "gr" means and
what values does it hold

On Mon, Oct 14, 2013 at 8:10 PM, Jim Fox fox.1949@gmail.com wrote:

Do long document attribute names waste space? If I use:

{ "member_id":"some_id", "member_group_reference": "some ref"}

would that more efficiently indexed and stored if I use

{ "id":"some_id", "gr": "some ref"}

instead?

Thanks,

Jim

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4