(zettel (meta (back "00001004011200") (backward "00001004011200") (box-number "1") (created "20220307112918") (modified "20220307122554") (published "20220307122554") (role "manual") (syntax "zmk") (tags "#configuration #manual #zettelstore") (title "Configure memory boxes")) (rights 4) (encoding "") (content "Under most circumstances, it is preferable to further configure a memory box.\nThis is done by appending query parameters after the base box URI ''mem:''.\n\nThe following parameters are supported:\n\n|= Parameter:|Description|Default value:|Maximum value:\n|max-bytes|Maximum number of bytes the box will store|65535|1073741824 (1 GiB)\n|max-zettel|Maximum number of zettel|127|65535\n\nThe default values are somehow arbitrarily, but applicable for many use cases.\n\nWhile the number of zettel should be easily calculable by an user, the number of bytes might be a little more difficult.\n\nMetadata consumes 6 bytes for the zettel identifier and for each metadata value one byte for the separator, plus the length of key and data.\nThen size of the content is its size in bytes.\nFor text content, its the number of bytes for its UTF-8 encoding.\n\nIf one of the limits are exceeded, Zettelstore will give an error indication, based on the HTTP status code 507."))