SQL - OPTIMIZE DATABASE

Optimizes the database for particular operations.

Syntax

  1. OPTIMIZE DATABASE [-lwedges] [-noverbose]
  • -lwedges Converts regular edges into Lightweight Edges.
  • -noverbose Disables output.

Currently, this command only supports optimization for Lightweight Edges. Additional optimization options are planned for future releases of OrientDB.

Examples

  • Convert regular edges into Lightweight Edges:

    1. orientdb> OPTIMIZE DATABASE -lwedges

For more information, see