admin.forestSetFastDataMaxSize( config as element(configuration), forest-id as (Number|String), value as xs.unsginedInt ) as element(configuration)
This function sets the allowable size (in megabytes) for data to be kept by a forest in its fast data directory, or 0 for no limit.
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() admin.forestSetFastDataMaxSize(config, admin.forestGetId(config, "Documents"), 16384) => sets the fastDataMaxSize of the forest named "Documents" to 16384 megabytes (16 gigabytes). Use admin.saveConfiguration to save the changes to the configuration or pass the configuration to other Admin API functions to make other changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.