cc299
一、 对象存储
  1. 下图中的 Address就是嵌套对象
  2. 查看它的mapping,可以看到address有自己的属性
  3. 实际存储:
    {
        "Name":"Qi Wei",
        "Age":22,
        "Address.Country":"China",
        "Address.Province":"Sichuan",
        "Address.City":"Chengdu"
    }
二、数组对象:
  1. 对象:
    PUT /beauties/cn/4
    {
                "Name":"Zhao liying",
                "House":[
                     {"Name":"Botany","Street":"Cascade"},
                     {"Name":"Auchland","Street":"Queen"}
                 ]
            }
  1. 实际存储:列式
    Name:["Botany","Auchland"],
    Street:["Cascade","Queen"]
 
 
 
 
 
 
 
 

分类:

技术点:

相关文章:

  • 2020-02-24
  • 2021-07-24
  • 2021-12-31
  • 2021-12-31
  • 2022-01-01
  • 2022-01-01
  • 2021-12-14
猜你喜欢
  • 2021-12-31
  • 2021-07-21
  • 2021-09-30
  • 2020-05-28
  • 2022-01-08
  • 2021-12-29
相关资源
相似解决方案