Congyuwang / RocksDict

Python fast on-disk dictionary / RocksDB & SpeeDB Python binding
https://congyuwang.github.io/RocksDict/rocksdict.html
MIT License
173 stars 8 forks source link

Unable to get 'key' from RocksDict #130

Closed umanniyaz closed 2 months ago

umanniyaz commented 3 months ago

I am doing an ingestion of key value pairs which is key: int and value: float, after ingestion is done I call db.write() also and call db.close().After that, when I zip the Database folder and try to use it on server and unzip it and use the DB it shows keys not present,but in local system keys are present for the same DB. Ingestion size is of around ~80million records. Also even if I close the DB in one IDE and use it over Jupyter notebook behaviour is inconsistent.On notebook it returns values for the keys while as on IDE it doesn't @Congyuwang

Congyuwang commented 2 months ago

I think the problem may be about raw mode. Are using consistently using RAW mode? You have to use raw mode for it to be compatible with your IDE.