ruby on rails - Does minimizing json document size increase performance on elastic search? -


i considering using elastic search primary database. thing holding me understanding whether or not json document size slows down elastic search. example, if index json documents 100 fields rather 3 fields need search (and querying sql db other data), elastic search slower?

is concern reason not use elastic search primary data storage? keep backup in traditional database can rebuild index plan query elastic search. sound idea?

indexing fields in json doc won't slow down elasticsearch, make indexes bigger. if disk space or ram limited, perhaps want index 3 relevant fields.

you can still store whole doc in elasticsearch (and set _source field compressed) disable indexing of irrelevant fields setting them "index": "no".

however if capacity isn't problem, why not let elasticsearch thing? you'll find there other relevant fields hadn't considered, , quite you'll end using es queries db handle because (a) it's damn fast , (b) comes easy scaling built in.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -