Xml Indexing

XML indexing consists of two categories: primary and secondary indexes. These two indexes types provide an indexing relationship within the XML documents similar to the relationship between clustered and non-clustered indexes. When implementing XML indexes, there are some basic rules that apply to each.

1.Primary XML indexes include paths, tags, and values of the XML content.
2.Primary XML indexes cannot exist without a clustered index on the primary key of the table that the XML column is in. This clustered index is required for partitioning the table, and the XML index can use the same partitioning scheme and functioning.
3. A secondary XML index extends the primary index including paths, values, and properties.
4. A secondary XML index cannot exist without a primary XML index

 

Basicly, the step is followed:

Collection - Table - Primary Index - Second Index (either path, value or property or both or all)

 

需要注意的是

Follow the basic rules of PATH being utilized for knowing the path in which the query requires, PROPERTY for searching proeprty values and PATH possibly being unknown, and VALUE based on exact value searches in queries.
Secondary indexes provide a lot of benefit when there are multiple unique values in the XML content. In many cases cases, though, a primary XML index will be sufficient. There are a number of other things to keep in mind when building secondary XML indexes. First, creating XML indexes takes a large amount of storage. Also, think about nodes and paths to indexes based on queries that will be encountered in the system. Strive to strike a balance between hardware resources, storage, index usefulness, amount of indexes created, and the number of times an index may actually be needed when building XML indexes.

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
鉴于您提供的引用内容,关于IDEA的索引问题,有几种解决方法可以尝试。首先,可以尝试使用"Invalidate Caches"功能来清除缓存。这可以通过点击"File",然后选择"Invalidate Caches"来完成。\[1\]如果这个方法不起作用,可以尝试手动清除缓存。进入到C:\Users\ASUS\AppData\Local\JetBrains\IntelliJIdea2021.2文件夹,然后删除"caches"和"index"文件夹。\[2\]另外,您还可以尝试升级IDEA的版本,因为在2021.3.2版本之后,该问题可能已经得到解决。\[3\]最后,您还可以尝试更换Maven的使用方式,不使用IDEA集成的Maven,而是使用阿里镜像库下载Maven文件包,并选择"settings-aliyun.xml"进行配置。这样可以避免在下载依赖时遇到网络不稳定的问题。\[3\]希望这些方法能够帮助您解决IDEA的索引问题。 #### 引用[.reference_title] - *1* [【小技巧】IDEA 卡住不动的解决办法](https://blog.csdn.net/LBWNB_Java/article/details/121065784)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [idea一直indexing JDK卡死解决方案](https://blog.csdn.net/Hcy_code/article/details/121484580)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [idea每次打开总是一直加载indexing library‘maven xxx‘‘,Scanning file to index,如何解决?](https://blog.csdn.net/u014103971/article/details/127979827)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值