Alternative to Source Fields


(Imaravin) #1

Hi all,
I have been thinking about a different approach for source field.
Instead of single source field why can't we store each fields as stored field individually
So that we can avoid JSON parsing time. As loading of single large field vs multiple small fields doesn't matter I think it will be faster

Am I missing anything


(David Pilato) #2

You can do that but as soon as you disable _source you won't be able to benefit from some features like the _reindex API.


(Imaravin) #3

Thanks

If I write reindex based on stored fields in the documents similar to source, will it be better than _source field?
What is the performance gain of storing it as single source field?


(David Pilato) #4

I don't know. You want to do this. So you have to test it.
I'm unsure there is a performance gain TBH but share your findings if any.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.