Loading TOC...

MarkLogic 9 Product Documentation
admin.databaseGetLargeSizeThreshold

admin.databaseGetLargeSizeThreshold(
   config as element(configuration),
   database-id as (Number|String)
) as Number

Summary

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.

Required Privileges

This operation requires at least one of the following privileges:

http://marklogic.com/xdmp/privileges/admin/database

http://marklogic.com/xdmp/privileges/admin/database/{id}

Example

>  
  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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.