How to store relational data in elasticsearch

前端 未结 2 1515
长发绾君心
长发绾君心 2020-12-18 12:55

What are the options to store relational data in elasticsearch. I know the following approaches

  1. Nested object :- I don\'t want to store dat

2条回答
  •  無奈伤痛
    2020-12-18 13:30

    There are two more approaches: Denormalization and running multiple queries for joins.

    Denormalization will eat up some more space and increase your write time, but you will just need to run one query to retrieve your data, hence, your read time will improve. Since you don't want to store data in a single index, so joining might help you out.

提交回复
热议问题