Console - RELOAD RECORD

Reloads a record from the current database by its Record ID, ignoring the cache.

You may find this command useful in cases where external applications change the record and you need to see the latest update.

Syntax

  1. RELOAD RECORD <record-id>
  • <record-id> Defines the unique Record ID for the record you want to reload. If you don’t have the Record ID, execute a query first.

Examples

  • Reload record with the ID of 5:5:

    1. orientdb> RELOAD RECORD 5:5
    2.  
    3. ------------------------------------------------------------------------
    4. Class: Person id: 5:5 v.0
    5. ------------------------------------------------------------------------
    6. parent : Person@5:4{parent:null,children:[Person@5:5, Person@5:6],
    7. name:Barack,surname:Obama,city:City@-6:2}
    8. children : null
    9. name : Malia Ann
    10. surname : Obama
    11. city : null
    12. ------------------------------------------------------------------------

For more information on other commands, see Console Commands.