Book Image

Getting Started with OrientDB

By : Claudio Tesoriero
Book Image

Getting Started with OrientDB

By: Claudio Tesoriero

Overview of this book

<p>In modern software applications, often there is the necessity to manage very big amounts of unstructured data with varying schema. In this scenario, instead of relational databases, we can use OrientDB, an open source NoSQL DBMS written in Java. Inspite ofDespite being a document-based database, the relationships are managed with direct connections between records. It supports schema-less, schema-full, and schema-mixed modes.</p> <p>Getting Started with OrientDB will be your handy, quick reference guide, for all document-graph DBMS functionality. Administrative tasks, deployment, designing a database, different ways of querying and consuming data - all that you need to know about OrientDB is presented keeping with practical usage in mind. You will be able to install, setup, deploy, and configure databases with OrientDB for applications.</p> <p>Getting Started with OrientDB will allow you to use its OreintDB’s main functionality immediately. The book will guide you through the discovery of one of the most powerful NoSQL databases available today. It will then take you through downloading and installing OrientDB, cluster deployment, programming, discovering OrientDB’s potential, and its features.</p> <p>The book covers useful administrative topics such as import/export, automatic backups, and configuration tips. Furthermore, design concepts like user management, document databases, graph databases, and dictionaries are covered. Finally, concepts and programming examples are shown in Java.</p>
Table of Contents (12 chapters)

Back up / restore


OrientDB does not have any real backup and restore procedures, but rather they have the import/export ones. The export/import procedure is useful when you plan to upgrade your version of OrientDB. In fact, since the compatibility between different engine versions is not guaranteed, to move a database from an engine to a new one, it is recommended to do an export from the old system and an import into the new one. To import/export a database you can use both the command-line console and the OrientDB Studio.

Using the console

Using the console, you will be able to export an entire database or only its schema. To do export a database fully, you have to connect as admin and execute the following command:

export database <output-file>

For example:

export database demo.json

The database is exported and gzipped. The compressed gzipped file contains a text file which has all the database info, schema, and data in JSON format. This file can be imported back into a new fresh database...