admin.taskserverGetDefaultInferenceSize( config as element(configuration), group-id as (Number|String) ) as Number
This function returns the default amount of memory (in megabytes) that can be used by sem:store for inference.
const admin = require('/MarkLogic/admin.xqy'); const config = admin.getConfiguration() const groupId = admin.groupGetId(config, "Default") admin.taskserverGetDefaultInferenceSize(config, groupId) //Returns the default memory size for inference on the task server, in megabytes => 100
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.