Single-Document Buffer
The single-document buffer holds one entire document while Enrichment searches within it for fields. Enrichment allocates a block of memory for this buffer when the program starts. If Enrichment reads a document that does not fit into the buffer, it automatically increases the buffer size until the document fits. The single-document buffer will be at least as big as the largest document in the input.
Use the Environment tag group <SINGLEBUFFER> tag to control the initial size of the single-document buffer (in the range 1 KB to 2 GB) and its rate of growth, or growth factor. The growth factor is a percentage (in the range 1% to 200%) of the buffer size at the time it is being increased. Enrichment automatically increases the buffer size by the growth factor as necessary until the document fits. The default <SINGLEBUFFER> tag setting for initial buffer size is 32 KB. The default growth factor setting is 50.
For example, if you set <SINGLEBUFFER> initially to 10 KB with a growth factor of 50% and the current document is 20 KB in size, Enrichment increases the single-document buffer size first by 5 KB (50% of 10 KB) to 15 KB and then by 7.5 KB (50% of 15 KB) to 22.5 KB.
For complete information on using the <SINGLEBUFFER> tag, refer to the Enrichment Language Reference Guide.