Memory RxStorage (beta)

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.

Pros

  • Really fast. Uses binary search on all operations.
  • Small build size

Cons

  • No persistence
  • No CouchDB replication
import {
    createRxDatabase
} from 'rxdb';
import {
    getRxStorageMemory
} from 'rxdb/plugins/memory';

const db = await createRxDatabase({
    name: 'exampledb',
    storage: getRxStorageMemory()
});

If you are new to RxDB, you should continue here

results matching ""

    No results matching ""