How do you track record relations in NoSQL?

后端 未结 5 2031
鱼传尺愫
鱼传尺愫 2020-12-04 05:28

I am trying to figure out the equivalent of foreign keys and indexes in NoSQL KVP or Document databases. Since there are no pivotal tables (to add keys marking a relation be

5条回答
  •  执笔经年
    2020-12-04 06:12

    Although, it is best to use RDBMS in such cases instead of NoSQL, yet one possible solution is to maintain additional nodes or collections to manage mapping and indexes. It may have additional cost in form of extra collections/nodes and processing, but it will give an solution easy to maintain and avoid data redundancy.

提交回复
热议问题