提示:相同的脚本可以同时为区分大小写的和不区分大小写的查询创建索引。
Tip: The same script creates indexes for both case-insensitive and case-sensitive queries.
因此您必须经历为每个用户数据库激活不区分大小写查询的整个过程。
Therefore you must go through the entire process for enabling case-insensitive queries for every user database.
在不区分大小写的数据库中,这种查询花费的时间增加了5%到8%。
Such queries took 5% to 8% longer in the case-insensitive database.
现在,如果用VisualExplain或db 2 exfmt解释此查询,就会看到这个不区分大小写的搜索使用了索引。
Now, if you explain the query (with Visual explain or db2exfmt), you see that the index is used for the case-insensitive search.
要想避免使用fn:upper - case函数并利用xml索引加快查询,就需要创建不区分大小写的数据库。
To avoid the use of the fn: upper-case function and exploit the benefits of XML indexes, it is necessary to create a case-insensitive database.
在不区分大小写的数据库中查询XML数据。
请注意对于专有名称的数据查询或搜索操作(我将在本系列的第2部分演示)是不区分大小写的。
Note that data query or search operations on distinguished names (which I demonstrate in the second half of this article) are case-insensitive.
请注意对于专有名称的数据查询或搜索操作(我将在本系列的第2部分演示)是不区分大小写的。
Note that data query or search operations on distinguished names (which I demonstrate in the second half of this article) are case-insensitive.
应用推荐