Commit graph

92 commits

Author SHA1 Message Date
iFA 7750e765b8
Update _rocksdb.pyx 2020-07-19 14:21:35 +02:00
iFA a3848007e6
Update db.pxd 2020-07-19 14:21:03 +02:00
iFA 8865320820
Update table_factory.pxd 2020-05-18 17:51:39 +02:00
iFA 4e7ad8b9d9
Update options.pxd 2020-05-18 17:51:27 +02:00
iFA 9bbf17b22e
Update _rocksdb.pyx 2020-05-18 17:51:11 +02:00
iFA 47451afdb7
Update options.pxd 2020-04-07 14:19:08 +02:00
iFA ecd0823331
Update _rocksdb.pyx 2020-04-07 14:17:30 +02:00
iFA b721c18a6a
Update _rocksdb.pyx 2020-03-12 20:53:07 +01:00
iFA d94c3a57c0
Update db.pxd 2020-03-12 20:51:57 +01:00
iFA f14a8197bb
Update table_factory.pxd 2020-03-12 20:51:28 +01:00
iFA 734a8b6337
Update options.pxd 2020-03-12 20:49:29 +01:00
iFA ac49a391af
Update options.pxd 2019-04-22 20:46:01 +02:00
iFA 57397cd077
Update _rocksdb.pyx 2019-04-22 20:45:29 +02:00
Ming-Hsuan-Tu ee1bc5a0b9
Merge pull request #40 from fish2000/patch-2
Allow `rocksdb.DB` instances to be manually closed (second revision PR)
2019-02-02 12:45:08 +08:00
twmht ccd9f21ea1 temporary remove some test options 2019-02-02 12:39:17 +08:00
Alexander Böhn 952e7bb4ab
Allow rocksdb.DB instances to be manually closed
While `delete rocks_ptr` is a deterministic operation in C++, the Python analogue `del rocks_handle` is not – disposal and finalization of the Rocks database are entirely dependent on the Python garbage collector (q.v. the `python-rocksdb` tests themselves, which call `gc.collect()` after `del rocks_handle` to attempt to force the destructor to run). This change exposes a method to trigger the destruction of the underlying Rocks database pointer (deterministic!) through the Python Rocks handle; existing code will not need to be changed, as the Python object destructor (non-deterministic!) will now call this method.

This is the second revision of this PR – it resolves the first revision, #39.
2019-02-01 11:36:36 -05:00
twmht 0c809e1d2b change default compaction_pri 2019-02-01 21:57:23 +08:00
twmht 32a3dca280 remove full_scan_mode 2019-02-01 21:56:58 +08:00
Jason Fried 2a66e20ca3 Column Family Support
Add support for Column Families in a runtime safe way.
Add unittests to test functionality
Insure all unittests are passing.
Cleaned up unittests to not use a fixed directory in tmp, but use tempfile
2018-11-06 02:26:47 +00:00
Ming-Hsuan-Tu 4d18d4be42
Merge branch 'master' into feature-fixSnappyCompressionTest 2018-02-15 15:56:05 +08:00
Mehdi Abaakouk e4c0de9455 Allow to compile the extension everywhere
This change:
* uses to setuptools Cython automatic extension build system.
* Add tox.ini to run tests and build docs into virtualenv
* Add .travis.yaml and Dockerfile to run tests in CI
* Change requirements to ensure:
  - Cython and setuptools are installed before we build the Cython
    extension
  - tests dependencies are not installed by default
  - doc dependencies are explicit
* Add missing lz4 library
* Allow to build the module with any librocksdb headers (no-rtti)

Closes #15
2018-02-09 09:21:56 +01:00
George Mossessian 17277d3dd0 allow snappy_compression as a default option in test_options.py::TestOptions::test_simple 2017-06-28 15:04:33 -07:00
twmht 0dbe3eca5b add testcase for memtable 2017-06-19 13:59:31 +08:00
twmht 8382523ac4 fix memtable_factory crash 2017-06-19 13:58:37 +08:00
twmht f18c09e1cd use pytest 2017-04-25 19:33:42 +08:00
twmht 5610d9474d update the usage of default operators 2017-04-25 08:25:02 +08:00
twmht 79b0f8d6fb add seekForPrev 2017-04-23 19:32:41 +08:00
twmht 9d87eb5bdc add compaction_pri 2017-04-17 00:00:44 +08:00
twmht 9fcafffbf4 add default merge operator 2017-04-16 14:13:01 +08:00
twmht 58ba17ac90 Merge options source_compaction_factor, max_grandparent_overlap_bytes and expanded_compaction_factor into max_compaction_bytes 2017-04-08 00:18:38 +08:00
twmht 056d62d43d now support rocksdb 5.3.0 2017-03-24 00:56:24 +08:00
hofmockel 01f13577ad Add "row_cache" to options. 2015-08-30 12:21:40 +02:00
hofmockel 6b54dc9e64 No need for the 'get_ob' methods on PyCache. 2015-08-30 12:20:45 +02:00
hofmockel 167ee99f33 Change API of compact_range to be compatible with the change of rocksdb. 2015-08-27 21:45:09 +02:00
hofmockel 8fba5ffa1d Wrap the RepairDB function. 2015-08-15 16:34:35 +02:00
hofmockel aee8dbe540 Remove prints from the tests. 2015-07-05 14:16:20 +02:00
hofmockel 2ef04007c4 Add lz4 compression type. 2015-07-05 13:52:17 +02:00
hofmockel 302d1a6440 Make it possible to iterate over a WriteBatch. 2015-07-05 13:35:15 +02:00
hofmockel cd545c7ac0 Update the declaration with rocksdb. 2015-04-12 14:09:02 +02:00
hofmockel 8b26e1e4b0 Get rid of depricated way to create backupengine. 2015-04-12 14:08:30 +02:00
hofmockel 0c13b55e55 Remove rm_scan_count_limit from Cache creation. 2015-04-12 13:58:22 +02:00
hofmockel b9f06fe785 Remove table_cache_remove_scan_count_limit because it is also removed from rocksdb. 2015-04-12 13:51:28 +02:00
hofmockel 2cbeb48c17 Type has changed with rocksdb 3.6 2014-10-22 20:58:59 +02:00
hofmockel 9cf520a77b Update the tests. 2014-10-22 20:54:25 +02:00
hofmockel 87a7ddfe1c Move filter_policy to block_based_table_factory. 2014-10-22 09:43:47 +02:00
hofmockel 5550ed91e7 Move the block_cache* from options to block_based_table_factory. 2014-10-22 09:41:33 +02:00
hofmockel 14dd1c785a Move the 'simple' block based table options to the block_table_factory. 2014-10-22 09:35:17 +02:00
hofmockel 3358119f22 Remove deprecated options. 2014-10-22 09:31:46 +02:00
hofmockel 8a0bd3a24e Change include path and get rid of the warning. 2014-08-22 20:08:30 +02:00
hofmockel e3aa17dc3a Fix unittest 2014-08-22 20:08:20 +02:00