admin.databaseGetLargeSizeThreshold( config as element(configuration), database-id as (Number|String) ) as Number
This function returns the threshold at which binary documents in the specified database should be handled as binary large objects (BLOBs). Binary documents less than or equal to the threshold are treated as small binary objects, stored in stands. Binary documents larger than the threshold are stored in the Large Data Directory for more efficient memory consumption.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
database-id | The ID of the database. |
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
> const admin = require('/MarkLogic/admin.xqy'); var cfg = admin.getConfiguration() admin.databaseGetLargeSizeThreshold(cfg, xdmp.database("Documents")) //Returns the threshold for binary large objects (BLOBs).
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.