Field MaximumOctets
- Namespace
- MailFathom.Infrastructure.Persistence.Settings
- Assembly
- MailFathom.Infrastructure.dll
The largest document this build composes settings from, and therefore the largest one it will persist.
public const int MaximumOctets = 1048576
Returns
- int
- The largest document this build composes settings from, and therefore the largest one it will persist.
Remarks
jsonb holds up to a gigabyte, and this document is expanded three times over on its way to a snapshot —
the string the driver materializes, the UTF-8 bytes the parser is handed, and the flattened dictionary — while
the host composes its configuration with no endpoint open. A ceiling that a configuration document could
plausibly reach would be the wrong ceiling; this one is far past any settings a deployment writes and far below
anything that costs the composition a thought, so a row past it is a row something went wrong with.
One bound rather than two, because the two directions are the same decision: a write permitted past what the read composes from would persist a row the next start refuses, and the deployment would be stopped by a change that had been accepted.