
ModifyPlan.prototype.prepare( optimize as Number ) as PreparePlan
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). |
prepare is a method of the following classes:
const op = require('/MarkLogic/optic');
const employees = op.fromView('main', 'employees');
employees.select()
.prepare(2)
.result();