Loading TOC...


   $config as element(configuration),
   $database-id as xs:unsignedLong
) as xs:unsignedInt


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.

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:




  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $cfg := admin:get-configuration()

  return admin:database-get-large-size-threshold($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.