Reload Record additionally works like Load Record order and is likewise used to stack a specific record from the outline. Burden record will stack the record with the assistance of Record ID. It is addressed with @rid image in the outcome set. The principle distinction is Reload record disregards the store which is helpful when outer simultaneous exchanges is applied to change the record. It will give the most recent update.
The accompanying assertion is the fundamental linguistic structure of the RELOAD Record order.
RELOAD RECORD <record-id>
Where <record-id> characterizes the record id of the record you need to reload.
On the off chance that you don't have the foggiest idea about the Record ID of a specific record, at that point you can execute any question against the table. In the outcome set you will discover the Record ID (@rid) of the particular record.
Example
Allow us to consider a similar Customer table that we have utilized in the past part.
Sr.No. | Name | Age |
---|---|---|
1 | Satish | 25 |
2 | Krishna | 26 |
3 | Kiran | 29 |
4 | Javeed | 21 |
5 | Raja | 29 |
Attempt the accompanying question to recover the record having Record ID @rid: #11:0.
orientdb {db = demo}> LOAD RECORD #11:0
On the off chance that the above inquiry is executed effectively, you will get the accompanying yield.
+---------------------------------------------------------------------------+
| Document - @class: Customer @rid: #11:0 @version: 1 |
+---------------------------------------------------------------------------+
| Name | Value |
+---------------------------------------------------------------------------+
| id | 1 |
| name | satish |
| age | 25 |
+---------------------------------------------------------------------------+