I can't decide which way to save an increasing number of event information to elasticsearch. Each filterable fields have a limited number of options, but multiple options are allowed. Should I store the information directly like this:
Yes, it requires some backend works to translate the numeric values into strings for the api. Do you think the second solution has no major benefits over the first one?
I don't think so.
I mean you would save some disk space because your values are smaller, but I'd question the value of that given you now have to do that second translation, so you trade one "cost" for another one that is potentially bigger (cause you have to now maintain that code and the translation table).
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.