Overview
LTE (Load to Engine) is an operation that loads properties from disk into the computing engine or memory to optimize query performance. It allows faster access to data, reducing disk I/O.
After a property is LTE-ed, it isn't loaded into memory immediately; it's loaded only when accessed via a query or during a cache warm-up operation. LTE can be performed on custom properties or the system property _id
.
When a property is no longer needed for LTE, you can execute the UFE (Unload from Engine) operation to remove it. Although UFE-ed properties may remain temporarily in memory until cleared or evicted, they are no longer accessible by queries.
LTE
You can perform LTE on a property using the LTE()
statement. The LTE operation runs as a job, you may run show().job(<id?>)
afterward to verify the success of the completion.
To perform LTE on the node property @member._id
:
LTE().node_property(@member._id)
To perform LTE on the edge property @transfer.amount
:
LTE().edge_property(@transfer.amount)
UFE
You can perform UFE on a property using the UFE()
statement.
To perform UFE on the node property @member._id
:
UFE().node_property(@member._id)
To perform UFE on the edge property @transfer.amount
:
UFE().edge_property(@transfer.amount)