title | slug |
---|---|
Memory RxStorage |
rx-storage-memory.html |
The Memory RxStorage
is based on plain in memory arrays and objects. It can be used in all environments and is made for performance.
Use this storage when you need a really fast database like in your unit tests or when you use RxDB with server side rendering.
- Really fast. Uses binary search on all operations.
- Small build size
- No persistence
import {
createRxDatabase
} from 'rxdb';
import {
getRxStorageMemory
} from 'rxdb/plugins/storage-memory';
const db = await createRxDatabase({
name: 'exampledb',
storage: getRxStorageMemory()
});