File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,27 @@ pouchdb-adapter-react-native-sqlite
3
3
4
4
PouchDB adapter using ReactNative SQLite as its backing store.
5
5
6
+ ### Why?
7
+
8
+ SQLite storage performs much faster than AsyncStorage, especially with secondary index.
9
+ Here is benchmark results:
10
+
11
+ | 1) ` allDocs ` speed | min | max | mean |
12
+ | ---------------| ------| ------| ------|
13
+ | AsyncStorage | 72ms | 94ms | 77ms |
14
+ | SQLite | 27ms | 39ms | 28ms |
15
+
16
+ | 2) ` query ` speed | min | max | mean |
17
+ | ---------------| --------| --------| --------|
18
+ | AsyncStorage | 1075ms | 1117ms | 1092ms |
19
+ | SQLite | 33ms | 39ms | 35ms |
20
+
21
+ * Device: iPhone 6s
22
+ * Documents: 434
23
+ * Update seq: 453
24
+ * Iterations: 100
25
+ * Used options: ` { include_docs: true } `
26
+
6
27
### Prerequisites
7
28
8
29
- [ pouchdb-react-native] ( https://github.com/stockulus/pouchdb-react-native )
You can’t perform that action at this time.
0 commit comments