Create the internal option object
Destroy any valid option pointer
User Filter Policy
Bloom filter
User Comparator, this is a default string comparator
Environment object, API only has deault environment
Cache Object, can only set size
Number of keys between restart points for delta encoding of keys. This parameter can be changed dynamically. Most clients should leave this parameter alone.
Approximate size of user data packed per block. Note that the block size specified here corresponds to uncompressed data. The actual size of the unit read from disk may be smaller if compression is enabled. This parameter can be changed dynamically.
Control over blocks (user data is stored in a set of blocks, and a block is the unit of reading from disk).
Comparator used to define the order of keys in the table. Default: a comparator that uses lexicographic byte-wise ordering
Compress blocks using the specified compression algorithm. This parameter can be changed dynamically.
If true, the database will be created if it is missing. Default: false
Use the specified object to interact with the environment, e.g. to read/write files, schedule background work, etc. Default: Environment()
If true, an error is raised if the database already exists. Default: false
If non-NULL, use the specified filter policy to reduce disk reads. Many applications will benefit from passing the result of BloomFilterPolicy here.
Number of open files that can be used by the DB. You may need to increase this if your database has a large working set (budget one open file per 2MB of working set).
If true, the implementation will do aggressive checking of the data it is processing and will stop early if it detects any errors. This may have unforeseen ramifications: for example, a corruption of one DB entry may cause a large number of entries to become unreadable or for the entire DB to become unopenable. Default: false
indicates if the option has been created
Parameters that affect performance Amount of data to build up in memory (backed by an unsorted log on disk) before converting to a sorted on-disk file.
Database creation and general usgage options