message type and allows you to quickly query data by using a field configured in the global index as a filter.HeroInfo table below has 4 primary key fields: heroId, heroName, heroFightingType, and heroQuality.{heroId:1,heroName:"Arthur",heroFightingType:1,heroQuality:3heroSkill:{BasicSkill1:1,BasicSkill2:2,SpecialSkill:3},heroLevel:12,heroskin:2,heroAttackpower:141,heroPhysicalDefense: 283,heroMagicdefense:124}{heroId:4,heroName:"Shooter",heroFightingType:3,heroQuality:4heroSkill:{BasicSkill1:1,BasicSkill2:2,SpecialSkill:3},heroLevel:11,heroskin:1,heroAttackpower:225,heroPhysicalDefense: 57,heroMagicdefense:41}
heroId is used as the intersection field for index designing, the following indexes can be created:HeroInfo table above, you can query data entries by using a field in a created local index as a filter. For example, if you want to query data by information such as heroLevel and heroskin, you can add them to the global index and use the fields in it to query data.
Please note that the global index does not support nested types either, such as the heroSkill field in the sample table above.Feedback