Configs2026年7月5日·1 分钟阅读

OrientDB — Multi-Model Database Combining Documents, Graphs & Key-Value

An open-source NoSQL database written in Java that natively supports document, graph, key-value, and object models in a single engine. Query with SQL-like syntax or traverse graphs without JOINs.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Established
入口
OrientDB
安全暂存命令
npx -y tokrepo@latest install f516257c-782b-11f1-9bc6-00163e2b0d79 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

Introduction

OrientDB is a multi-model database that stores documents, graphs, key-value pairs, and objects in a single engine without requiring separate systems. Its extended SQL dialect lets developers query documents and traverse graph relationships in the same statement, eliminating the need for JOINs.

What OrientDB Does

  • Stores and queries data as documents, graphs, key-value pairs, or objects using a single API
  • Provides an extended SQL syntax that adds graph traversal operators like OUT(), IN(), and TRAVERSE
  • Supports ACID transactions across both document and graph operations
  • Scales horizontally with built-in multi-master replication and automatic sharding
  • Includes OrientDB Studio, a web-based management interface for schema design, queries, and monitoring

Architecture Overview

OrientDB uses a record-based storage engine where each record has a unique Record ID (RID). Graph edges are stored as direct physical links between records, making traversals an O(1) pointer follow rather than an index lookup. The database supports schema-full, schema-less, and schema-mixed modes. It runs on the JVM and embeds a distributed coordination layer based on the Hazelcast protocol for cluster management.

Self-Hosting & Configuration

  • Deploy via Docker or download the binary distribution and run server.sh / server.bat
  • Set the root password via the ORIENTDB_ROOT_PASSWORD environment variable or during first startup
  • Configure storage, networking, and memory in config/orientdb-server-config.xml
  • For clusters, set up distributed mode by editing config/default-distributed-db-config.json
  • Enable automatic backups with the built-in backup scheduler or use EXPORT DATABASE for manual dumps

Key Features

  • True multi-model engine avoids the overhead of synchronizing separate document and graph databases
  • Direct record links make graph traversals faster than traditional relational JOINs
  • Extended SQL with graph syntax lowers the learning curve compared to purely graph-specific query languages
  • ACID-compliant transactions work across document and graph operations in the same commit
  • Built-in HTTP and binary protocol APIs with official drivers for Java, Node.js, Python, and more

Comparison with Similar Tools

  • Neo4j — purpose-built graph database with the Cypher query language; OrientDB adds document and key-value models in the same engine
  • ArangoDB — another multi-model database supporting documents, graphs, and search; OrientDB uses an extended SQL dialect while ArangoDB uses AQL
  • MongoDB — leading document database; OrientDB adds native graph capabilities that MongoDB does not offer out of the box
  • Dgraph — distributed GraphQL-native database; OrientDB provides a broader set of data models beyond graphs

FAQ

Q: Is OrientDB still actively maintained? A: OrientDB is maintained by SAP, which acquired the original company. The Community Edition remains open source under the Apache 2.0 license.

Q: Can I use standard SQL with OrientDB? A: OrientDB supports an extended SQL dialect that covers most standard SQL operations plus graph-specific commands like TRAVERSE and MATCH.

Q: How does OrientDB handle relationships compared to a relational database? A: Instead of foreign keys and JOINs, OrientDB stores direct physical pointers (edges) between records, making relationship traversal significantly faster.

Q: What is the maximum dataset size OrientDB can handle? A: OrientDB can handle billions of records across a sharded cluster. Individual nodes can manage hundreds of gigabytes with proper JVM tuning.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产