Console - DECLARE INTENT

Declares an intent for the current database. Intents allow you to tell the database what you want to do.

Syntax

  1. DECLARE INTENT <intent-name>
  • <intent-name> Defines the name of the intent. OrientDB supports three intents:
    • NULL Removes the current intent.
    • MASSIVEINSERT
    • MASSIVEREAD

Examples

  • Declare an intent for a massive insert:

    1. orientdb> DECLARE INTENT MASSIVEINSERT
  • After the insert, clear the intent:

    1. orientdb> DECLARE INTENT NULL

For more information on other commands, see Console Commands.