You can create a table that has one or more columns of type XML. Query execution processes each XML instance at runtime, so a mechanism for indexing XML columns is provided to speed up queries. Use the DB2 for LUW XML Index Editor to define the XML columns participating in the table XML index.
To define a DB2 LUW XML Index
The DB2 for LUW XML Index Editor opens.
Note: Click New on the toolbar to create an XML index. Use the Enter filter text text box to filter a large list of names to locate the one you want to work with.
Specifies the name of the XML index.
Specifies a schema for the selected XML index.
Specifies the column for which the XML index is being created. Select from the drop-down list. For the selected table, only those columns for which you have specified the Physical Data Type as XML appear in the drop-down list.
Specifies whether or not the selected XML index is unique.
Specifies whether or not to generate DDL for this object during Forward Engineering.
Specifies the action you want to take when DB2 encounters invalid XML patterns. Select from the drop-down list; valid values are Ignore and Reject.
Specifies the tablespace in which you want to create the index. Create or select from the drop-down list.
Specifies the percentage of each index page to leave as free space when building the index.
Specifies the percentage of each index level 2 page to leave as free space when building the index.
Specifies whether index leaf pages are merged online, and the threshold for the minimum percentage of space used on an index leaf page.
Specifies that an index can support both forward and reverse scans; that is, scanning of the index in the order that was defined at index creation time, and scanning in the opposite order.
Specifies the index split behavior. Select from the drop-down list. The valid values are symmetric, high, and low.
Specifies that the index statistics have to be collected at the time of creating the index. Select from the drop-down list; valid values are Basic, Detailed, and Detailed by Sampling.
Specifies that the index uses index compression. Select from the drop-down list; valid values are True and False.
The DB2 for LUW XML Index Editor closes.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|