Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Database compression

A Store database can be compressed.

Once compressed, a store database is read-only, but otherwise operates as normal and is opened in exactly the same way as an uncompressed database; data is dynamically decompressed as required.

The memory required to decompress data as it is read depends on the length of the streams in the database store, but is typically just a few kilobytes. A compressed database is not noticably slower than the equivalent uncompressed database, especially on slower media, such as CF-card.

The RDbStoreDatabase class provides the functions CompressL() and DecompressL() to convert a Store database to compressed form and vice-versa.

Note that:

When a file-store database is constructed using the RDbNamedDatabase interface, there is no access to the underlying store