0I:Berkeley DB Reference Guide: Access Methods[P4

Berkeley DB Reference Guide: Access Methods



,

Selecting a byte order



LThe database files created by Berkeley DB can be created in either little orbig-endian formats.

HThe byte order used for the underlying database can be specified as parthof the db_open call to open the database, specifically by settingkthe db_lorder element of the DB_INFO structure. If noIorder is selected, the native format of the machine on which the databaseis created will be used.

OBerkeley DB databases are architecture independent, and any format database canFbe used on a machine with a different native format. In this case, asGeach page that is read into or written from the cache must be convertedFto/from the host format, it is possible that databases with non-nativeEformats will incur a performance penalty for the run-time conversion.

IIt is important to note that the Berkeley DB access methods do no dataGconversion for application specified data, i.e., key/data pairs writtenJon a little-endian format architecture will be returned to the applicationFexactly as they were written, on a big-endian format architecture.

KAIÿÿ