Optimizes the database for particular operations.
OPTIMIZE DATABASE [-lwedges] [-noverbose]
-lwedgesConverts regular edges into Lightweight Edges.
Currently, this command only supports optimization for Lightweight Edges. Additional optimization options are planned for future releases of OrientDB.
Convert regular edges into Lightweight Edges:
OPTIMIZE DATABASE -lwedges
For more information, see