• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Buffer Load in Qlikview

Buffer Load in Qlikview

QVD files can be created and maintained automatically via the buffer prefix. The name of the QVD file is a calculated name (a 160-bit hexadecimal hash of the entire following load or select statement and other discriminating info) and is typically stored in the Application Data folder or another folder specified under User PreferencesLocations.

QVD buffers will normally be removed when no longer referenced anywhere throughout a complete script execution in the document that created it or when the document that created it no longer exists.

This housekeeping can be turned off by checking the options Keep Unreferenced QVD Buffers in Document Properties: General and Keep Orphaned QVD Buffers in User Preferences property pages respectively, though the procedure cannot be generally recommended.

Ex:

buffer (incremental) LOAD * FROM MyLog.log;

The incremental option enables the ability to read only part of an underlying file. Previous size of the file is stored in the XML header in the QVD file. This is particularly useful with log files. All records loaded at a previous occasion are read from the QVD file whereas the following new records are read from the original source and finally an updated QVD-file is created. Note that the incremental option can only be used with load statements and text
files and that incremental load cannot be used where old data is changed or deleted!

 buffer (stale after 7 days) SQL SELECT * FROM MyTable;

The stale after option is typically used with DB sources where there is no simple timestamp on the original data. Instead one specifies how old the QVD snapshot can be to be used. A stale after clause simply states a time period from the creation time of the QVD buffer after which it will no longer be considered valid. Before that time the QVD buffer will be used as source for data and after that the original data source will be used. The QVD buffer file will then automatically be updated and a new period starts.

Summary
Review Date
Reviewed Item
Buffer Load in Qlikview
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Buffer Load in Qlikview"

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.