What is Graph Database (GDB)?

Updated at:

Graph Database (GDB) is a reliable, real-time online database service that supports the property graph model for querying and storing highly connected data. GDB supports the Apache TinkerPop Gremlin query language and lets you quickly build applications based on highly connected datasets.

GDB is ideal for scenarios that involve highly interconnected datasets, such as social networking, fraud detection, recommendation engines, knowledge graphs, and network or IT operations. For example, a typical social network requires queries about relationships, such as friendships, schools attended, places of residence, and favorite restaurants. Traditional relational databases are inefficient for queries that require joining more than three tables. However, GDB easily handles these complex storage and query scenarios.

Prerequisites

Before you read this topic, you should understand the following concept:

Benefits

GDB provides the following benefits:

  • Standard graph query languages

    GDB supports property graphs and is highly compatible with the Gremlin and openCypher graph query languages.

  • Highly optimized proprietary engine

    The highly optimized proprietary graph computing and storage layers use multiple replicas on cloud disks to ensure high data reliability. The engine also supports ACID transactions.

  • High availability

    GDB supports high-availability (HA) instances and provides automatic switchover in case of a node failure to ensure business continuity.

  • Easy O&M

    GDB provides a rich set of Operations and Maintenance (O&M) features, such as backup and recovery, automatic upgrades, monitoring and alerting, and failover. These features significantly reduce O&M costs.

Benefits of Graph Database over traditional relational databases

Traditional relational databases and graph databases differ significantly in their data models, storage methods, and query optimization. For example, a traditional relational database takes several seconds or longer to process a second-degree query in a social network. Performance degrades for third-degree queries, which may not be supported at all.

In contrast, GDB easily supports these scenarios. Its performance can be 10 to several dozen times better than that of a traditional relational database. This performance difference is not due to a simple tuning issue. It is caused by fundamental differences in database modeling and kernel architecture. Therefore, GDB is inherently better suited for processing highly connected datasets.

Category

Graph Database

Relational Database

Model

Graph structure

Table schema

Stored information

Structured/Semi-structured data

Structured databases

Second-degree query

Efficient

Inefficient

Third-degree query

Efficient

Inefficient/Not supported

Space consumption

High

Medium

Get started

See the Quick start guide to learn how to purchase an instance, reset a password, connect to an instance, and import data to get started with GDB.