pouchdb-react-native icon indicating copy to clipboard operation
pouchdb-react-native copied to clipboard

Add support for RocksDB (dramatic memory improvement with multiple databases)

Open cjroth opened this issue 6 years ago • 2 comments

Calling getKeys loads all keys into memory and filters through them. This means that if there is other data in AsyncStorage that is unrelated to the current database, such as other databases, the memory load increases linearly with the number of keys.

If using RocksDB via https://github.com/tradle/react-native-async-storage-rocks, there is method to only load keys with a given prefix. I've found that this solves the memory issue entirely.

cjroth avatar Mar 06 '19 00:03 cjroth

No android version for this.

mqtik avatar Jan 03 '20 00:01 mqtik

I tried this pull request. It's throws a lot of conflicts with replication.

mqtik avatar Jan 06 '20 02:01 mqtik