- How can I configure A12 to store documents as JSON ?
- Will using JSON increase or decrease performance ?
I expect JSON to be faster, because the RPC is already JSON. Or will using JSON cause some double transformation ?
I expect JSON to be faster, because the RPC is already JSON. Or will using JSON cause some double transformation ?
Hello, storing documents as a JSON will not bring any performance boost as there are several transformations needed.
To store documents as JSON you have Two options:
IDocumentRepository which will save documents the way you want.DocumentBeforeRepositorySaveEvent, DocumentAfterRepositoryLoadEvent,… and update the content to be saved there.The first approach should keep the performance similar to current one, if you’ll implement it properly.
The second one with events will affect the performance negatively as you’ll add additional transformations.