Skip to content

Conversation

@cjroth
Copy link

@cjroth cjroth commented Mar 6, 2019

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.

@mqtik
Copy link

mqtik commented Jan 3, 2020

No android version for this.

@mqtik
Copy link

mqtik commented Jan 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants