There are two layers that work in the complete Marklogic application. The first is the Data layer . Second Query layer . In the Data layer : Marklogic stores data (in any format, XML, JSON, text, binary data, semantics ) at the bottom of the data layer. On bottom data, Marklogic creates universal index and range index also if defined. Marklogic also creates a cache and journal in the data layer. In all of this, there is also a transaction controller in the data layers. On came in the second layer. This is the query layer where we evaluate the x query programs.