Loading TOC...

MarkLogic 12 EA 2 Product Documentation
ModifyPlan.prototype.prepare

ModifyPlan.prototype.prepare(
   optimize as String
) as PreparePlan

Summary

This method prepares the specified plan for execution as an optional final step before execution.

Parameters
optimize The optimization level, which can be 0, 1, or 2 (1 is mostly used).

Usage Notes

prepare is a method of the following classes:

Example

const op = require('/MarkLogic/optic');
const employees = op.fromView('main', 'employees');

 employees.select()
    .prepare(2)
    .result();
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.