tsd:compress

Purpose This element specifies whether the corresponding doctype is stored in a compressed or uncompressed format.
Parent element tsd:physical
Child elements None
Attributes None
Type xs:NMTOKEN.
Restrictions

The tsd:compress element can have the following values:

  • "smart"
    Tamino checks the data to be stored and tries to find the best compromise between speed and storage space. This is the default and should lead to optimal behavior in most cases.

  • "always"
    Always compress as much as possible. This choice makes sense if you are primarily interested in reducing storage size. Especially for small documents, this increases retrieval time, but minimizes disk space usage.

  • "none"
    Compress large data records, but do not compress small data records. This setting is appropriate if you expect most of your documents to be reasonably small (< 8000 characters), and you want to optimize processing speed, sacrificing storage space. Large documents are not affected by this setting.

  • "off"
    Do no compression at all.

  • "utf8"
    In text documents, each character is replaced by its UTF-8 representation. This can result in a compression factor of up to 4, depending on platform and data.

Example

This example shows the use of the tsd:compress element to set compression to "always":

<tsd:schemaInfo name = "Telephone">
  <tsd:collection name = "CustomerData"></tsd:collection>
  <tsd:doctype name = "Telephone">
    <tsd:logical>
    .
    .
    .
    </tsd:logical>
    <tsd:physical>
      <tsd:compress>always</tsd:compress>
    </tsd:physical>
  </tsd:doctype>
</tsd:schemaInfo>