Symbian3/PDK/Source/GUID-79B699F5-5EDE-5561-A385-19ED02248398.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     7     Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->
     9 -->
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept xml:lang="en" id="GUID-79B699F5-5EDE-5561-A385-19ED02248398"><title>Indexes</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>Indexes in the store database are B+tree structures with a fixed size key. This means that text keys may easily generate large indexes, and a maximum length text column cannot be indexed. </p> <p>Keys in DBMS may be truncated by specifying the length of a text column to be used in the index key. Such a key column must always be the last one in the key, to ensure that the index provides a true ordering. If a text key column does not supply a truncation length, the full length of the table column is used.</p> <p>Apart from <codeph>Binary</codeph> and <codeph>LongBinary</codeph> columns, all types can be used in an index key including <codeph>LongText8</codeph> and <codeph>LongText16</codeph>, although these must supply a truncation length (as they have no maximum length) and must therefore be the last key columns in the key.</p> </conbody></concept>
    12 <concept id="GUID-79B699F5-5EDE-5561-A385-19ED02248398" xml:lang="en"><title>Indexes</title><shortdesc>Most datatypes can be used in indexes, but there are restrictions
       
    13 when using <codeph>LongText</codeph> data types.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <p>Indexes in the store database are B+tree structures with a fixed size key.
       
    15 This means that text keys may easily generate large indexes, and a maximum
       
    16 length text column cannot be indexed. </p>
       
    17 <p>Keys in DBMS may be truncated by specifying the length of a text column
       
    18 to be used in the index key. Such a key column must always be the last one
       
    19 in the key, to ensure that the index provides a true ordering. If a text key
       
    20 column does not supply a truncation length, the full length of the table column
       
    21 is used.</p>
       
    22 <p>Apart from <codeph>Binary</codeph> and <codeph>LongBinary</codeph> columns,
       
    23 all types can be used in an index key including <codeph>LongText8</codeph> and <codeph>LongText16</codeph>,
       
    24 although these must supply a truncation length (as they have no maximum length)
       
    25 and must therefore be the last key columns in the key.</p>
       
    26 </conbody></concept>