Like RDBMS, OrientDB additionally gives highlights like Export and Import the information base. OrientDB utilizes the JSON configuration to trade the information. Of course send out order is utilizing the GZIP calculation to pack the records.
While trading a data set it isn't locking the information base, which implies you can perform simultaneous peruse and compose procedure on it. It additionally implies that you can make a precise of that information on account of simultaneous peruse and compose activities.
In this part, you can figure out how to trade the data set from the OrientDB order line.
The accompanying assertion is the fundamental language structure of the Export data set order.
EXPORT DATABASE <output file>
Note − You can utilize this order simply subsequent to interfacing with a specific data set.
Example
In this model, we will utilize a similar information base named 'demo' that we made in the past part. You can utilize the accompanying order to trade the information base to a record named 'send out demo'.
orientdb {db = demo}> EXPORT DATABASE ./export-demo.export
On the off chance that it is effectively executed, it will make a document named 'trade demo.zip' or 'exportdemo.gz' in view of the working framework and you will get the accompanying yield.
Exporting current database to: DATABASE /home/linuxtp/Desktop/demo.export in
GZipped JSON format ...
Started export of database 'demo' to /home/linuxtp/Desktop/demo.export.gz...
Exporting database info...OK
Exporting clusters...OK (12 clusters)
Exporting schema...OK (11 classes)
Exporting records...
- Cluster 'internal' (id = 0)...OK (records = 3/3)
- Cluster 'index' (id = 1)...OK (records = 0/0)
- Cluster 'manindex' (id = 2)...OK (records = 0/0)
- Cluster 'default' (id = 3)...OK (records = 0/0)
- Cluster 'orole' (id = 4)...OK (records = 3/3)
- Cluster 'ouser' (id = 5)...OK (records = 3/3)
- Cluster 'ofunction' (id = 6)...OK (records = 0/0)
- Cluster 'oschedule' (id = 7)...OK (records = 0/0)
- Cluster 'orids' (id = 8)...OK (records = 0/0)
- Cluster 'v' (id = 9)...OK (records = 0/0)
- Cluster 'e' (id = 10)...OK (records = 0/0)
- Cluster '_studio' (id = 11)...OK (records = 1/1)
Done. Exported 10 of total 10 records
Exporting index info...
- Index dictionary...OK
- Index OUser.name...OK
- Index ORole.name...OK
OK (3 indexes)
Exporting manual indexes content...
- Exporting index dictionary ...OK (entries = 0)
OK (1 manual indexes)
Database export completed in 377ms