python-rocksdb have some problem in time-to-live db
See original GitHub issuewhen a rockdb opened by with a time-to-live option,in java is
Options options = new Options().setCreateIfMissing(true);
options.setKeepLogFileNum(10);
rawDatadb = TtlDB.open(options, "xxx", 43200, false);
when open using python-rocksdb,the value will print some odd character,it maybe the inner data of time-to-live,when open by python-rocksdb: rocks_db = rocksdb.DB(“xxx”, opts, read_only=True),even add a ttl to the DB is the same
such as: [{“name”:“haha”}]�E�X
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
python-rocksdb Documentation
RocksDB stores all data as uninterpreted byte strings. pyrocksdb behaves the same and uses nearly everywhere byte strings too.
Read more >A problem about Rocksdb deleting data but after that iterator ...
Reason: First called db.iteritems() and the returned value is stored in it . Even after you have deleted using db.delete(b'a1') ...
Read more >Blog | RocksDB
But it also has a larger write amplification (typically 20-30 times user data). One of the problems is wasted compaction at the beginning ......
Read more >Kafka-Streams and rocksdb in the space-time continuum and ...
So whenever you need to store some state, you simply use rocksdb that ... But now we live in the Era of Big...
Read more >Storage Architecture - Rockset
It has become the storage engine of choice for many database management ... This is not a problem because RocksDB's leveled compaction keeps...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes! I am trying to fix this.
@vnnw did you find the answer? any sample code?