question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python-rocksdb have some problem in time-to-live db

See original GitHub issue

when 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:open
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
twmhtcommented, Apr 27, 2017

Yes! I am trying to fix this.

0reactions
kadnancommented, Oct 3, 2022

@vnnw did you find the answer? any sample code?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found