21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28 QVD Files<br />

A QVD (<strong>QlikView</strong> Data) file is a file containing a table of data exported from <strong>QlikView</strong>. QVD is a native<br />

<strong>QlikView</strong> format and can only be written to and read by <strong>QlikView</strong>. The file format is optimized for speed<br />

when reading data from a <strong>QlikView</strong> script but it is still very compact. Reading data from a QVD file is typically<br />

10-100 times faster than reading from other data sources.<br />

QVD files can be read in two modes, standard (fast) and super-fast. The selected mode is determined automatically<br />

by the <strong>QlikView</strong> script engine. Super-fast mode can be utilized only when all fields or a subset<br />

thereof are read without any transformations (formulas acting upon the fields), though the renaming of fields<br />

is allowed.<br />

A QVD file holds exactly one data table and consists of three parts:<br />

1. A well formed XML header (in UTF-8 char set) describing the fields in the table, the layout of<br />

the subsequent information and some other meta-data.<br />

2. Symbol tables in a byte stuffed format.<br />

3. Actual table data in a bit-stuffed format.<br />

28.1 Purpose of QVD Files<br />

QVD files can be used for many purposes. At least four major uses can be easily identified. More than one<br />

may apply in any given situation:<br />

Increasing Load Speed<br />

By buffering non-changing or slowly changing blocks of input data in QVD files, script execution becomes<br />

considerably faster for large data sets.<br />

Decreasing Load on Database Servers<br />

The amount of data fetched from external data sources can also be greatly reduced. This reduces work load<br />

on external databases and network traffic. Furthermore, when several <strong>QlikView</strong> scripts share the same data it<br />

is only necessary to load it once from the source database. The other applications can make use of the same<br />

data via a QVD file.<br />

Consolidating Data from Multiple <strong>QlikView</strong> Applications<br />

With the Binary (page 223) script statement it is limited to loading data from a single <strong>QlikView</strong> application<br />

into another one, but with QVD files a <strong>QlikView</strong> script can combine data from any number of <strong>QlikView</strong><br />

applications. This opens up possibilities e.g. for applications consolidating similar data from different business<br />

units etc.<br />

Incremental Load<br />

In many common cases the QVD functionality can be used for facilitating incremental load, i.e. exclusively<br />

loading new records from a growing database.<br />

To learn more about the use of QVD files and Incremental Load, follow the link below:<br />

Using QVD Files for Incremental Load (page 394)<br />

28.2 Create QVD Files<br />

A QVD file can be created by one of three different methods:<br />

393

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!