O'Reilly logo

RavenDB High Performance by Brian Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing the storage format

Codecs are an extension that allow for the storage format to be modified. The primary use of codecs is for encryption and compression. There are two basic types of codecs: document and index.

CODEC TYPE

DESCRIPTION

CLASS

Document

Allows the document storage format to be transformed. Encode and Decode methods are implemented for writing and reading data. Document codecs can be used for things like compression or encryption.

AbstractDocumentCodec

Index

Allows the index storage format to be transformed. Works just like the document codec, but for indexes.

AbstractIndexCodec

Implementing a codec involves processing the stream of data being written from the RavenDB server. It should be implemented in a stream-based ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required