Description
Currently, the readonly mode is implemented using a wrapper around the DocumentStore, rejecting read operations. That is not sufficient, due to:
- potential DB initialization (indices)
- calls that bypass the DocumentStore API (like for GC operations)