Home

Awesome

pouchdb-adapter-react-native-sqlite

PouchDB adapter using ReactNative SQLite as its backing store.

Why?

SQLite storage performs much faster than AsyncStorage, especially with secondary index. Here is benchmark results:

1) allDocs speedminmaxmean
AsyncStorage72ms94ms77ms
SQLite27ms39ms28ms
2) query speedminmaxmean
AsyncStorage1,075ms1,117ms1,092ms
SQLite33ms39ms35ms

On Simulator

3) bulkDocs speedtotalmean
AsyncStorage25.821ms5.16ms
SQLite22.213ms4.44ms
4) allDocs speedtotalmean
AsyncStorage189,379ms37.87ms
SQLite30,527ms6.10ms

How to use it

Check out the craftzdog/pouchdb-react-native repository.

Changelog