Marklogic module database

Moderator: Reach-Native-gp

Post Reply
Posts: 6
Joined: Mon Jun 08, 2020 10:26 am

Marklogic module database

Post by aakashali »

Why it is necessary to store the common code in modules database and what advantage it has ?

Posts: 21
Joined: Thu Oct 01, 2020 4:10 pm

Re: Marklogic module database

Post by amitgope »

It's not mandatory to use modules database to store your executable xqueries but that is the best practice. Some points to use modules databases are:
1. It's more secure.
2. The ease of deployment when a code is being pushed into MarkLogic as against a file system which can be accessed by anyone.
3. User's with proper execute permissions can only run the queries.
4. Maintenance of code is easy.
5. MarkLogic extended rest services, which is an outstanding frame for creating rest end points, uses modules database instead of filesystem

Post Reply