Database in MarkLogic and Forest?

 Ans: A database as a layer of abstraction between forests and HTTP, WebDAV, or XDBC servers.


A database is made up of data forests that are configured on hosts within the same cluster but not necessarily in the same group.
  • Multiple HTTP, XDBC, and WebDAV servers can be connected to the same database.
Modules Database:

The modules database is an auxiliary database that is used to store executable XQuery, JavaScript, and REST code. 
  • During installation, a database named Modules is created, but any database can be used as a modules database, as long as the HTTP or XDBC server is configured to use it as a modules database. 
  • Also, it is possible to use the same database to store executable modules, to store queryable documents, and/or store triggers.
Forest:

A forest is a collection of XML, JSON, text, or binary documents. Forest are physically stored inside the data folder of installed MarkLogic directory:

Below is the screenshot:


  • A forest can only be attached to one database at a time. 
  • You cannot load data into a forest that is not attached to a database.

Stands: Stands are small data sets of compressed document data. Stands are physically stored inside the Forest directory. Each stand contains actual compressed data of documents and indexes also.

Below is the screenshot of the stands.

Comments

Popular posts from this blog

What is universal index and range index?

How to measure query Xquery performance in Marklogic?

The security model in Marklogic