Physical layout for logical Konserve blobs. Fragments are immutable and never enumerated as logical keys. Old generations are retained for existing readers.
Physical layout for logical Konserve blobs. Fragments are immutable and never enumerated as logical keys. Old generations are retained for existing readers.
(item-size item)Exact size for the String/Binary attributes emitted by this layout. Manifest numeric fields are strings too, so no DynamoDB number-size estimate is needed.
Exact size for the String/Binary attributes emitted by this layout. Manifest numeric fields are strings too, so no DynamoDB number-size estimate is needed.
(plan key data inline-budget)(plan key data inline-budget overflow-write?)Plan a write without I/O. A batch can lower inline-budget so its published items fit in one transaction even when all original values fit individually.
Plan a write without I/O. A batch can lower inline-budget so its published items fit in one transaction even when all original values fit individually.
(plan-batch key-datas overflow-write?)Plan the items of one multi-key write so they fit a single transaction:
each item within item-limit and all of them within transaction-limit.
Values stay inline while that holds. With overflow-write?, values above
item-limit are moved out first, then the largest remaining ones until the
batch fits; without it a batch that cannot fit inline is refused
(:konserve.dynamodb/overflow-disabled), and one that can is written as is.
key-datas is a sequence of [key data].
Plan the items of one multi-key write so they fit a single transaction: each item within `item-limit` and all of them within `transaction-limit`. Values stay inline while that holds. With `overflow-write?`, values above `item-limit` are moved out first, then the largest remaining ones until the batch fits; without it a batch that cannot fit inline is refused (`:konserve.dynamodb/overflow-disabled`), and one that can is written as is. `key-datas` is a sequence of [key data].
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |