Dgraph vs SurrealDB
Dgraph is a property graph database; SurrealDB is a multiple database. Dgraph (2015-12, Apache-2.0, Go) ranks #3 this month; SurrealDB (2022-07, BUSL-1.1, Rust) ranks #14. They differ on 20 of 46 surveyed features.
| Attribute | Dgraph | SurrealDB |
|---|---|---|
| At a glance | ||
| Rank | #3 | #14 |
| Score | 67.6 | 61.4 |
| GitHub stars | 21.8k | 33k |
| Popularity | 79.7 | 62.7 |
| Activity | 77.2 | 71.8 |
| Community | 67.3 | 68.8 |
| Research | 62.3 | 51.6 |
| Fundamentals | ||
| Description | A distributed graph database with horizontal scaling and ACID transactions. Uses its own query language (DQL) derived from GraphQL, with automatic shard rebalancing across cluster nodes. | A multi-model database written in Rust that combines document, graph, and relational paradigms. Uses inter-document record links for graph traversals, with ACID transactions and row-level permissions. |
| Vendor | Istari | SurrealDB |
| Model | Property Graph | Multiple |
| Kind | database | database |
| Category | Enterprise | Growing |
| First released | 2015-12 | 2022-07 |
| Status | active | active |
| License | Apache-2.0 | BUSL-1.1 |
| Written in | Go | Rust |
| Query languages | DQL, GraphQL | SurrealQL, GraphQL, GQL |
| gdotv support | yes | no |
Feature scores 20 of 46 rows differ
| Feature | Dgraph | SurrealDB |
|---|---|---|
| Community & Business | ||
| Active development | ✓ | ✓ |
| Commercial support | ✓ | ✓ |
| Live community | 0.5 | 0.75 |
| Open Source | ✓ | 0.5 |
| Pricing | · | ✓ |
| Trendiness | 0.25 | ✓ |
| Deployment | ||
| Containerization | ✓ | ✓ |
| Work as dedicated instance | ✓ | ✓ |
| Work as embedded | · | ✓ |
| Testing in-memory version | ✓ | ✓ |
| Platform | ||
| Operating on Linux | ✓ | ✓ |
| Operating on Windows | ✓ | ✓ |
| SaaS offering | ✓ | ✓ |
| Operations | ||
| Automatic updates | · | · |
| Client side caching | · | · |
| Data versioning support | · | ✓ |
| Live backups | ✓ | · |
| Distribution | ||
| Cluster Re-balancing | ✓ | ✓ |
| Data Distribution | ✓ | ✓ |
| High-Availability | ✓ | ✓ |
| Query Distribution | ✓ | ✓ |
| Replication support | ✓ | ✓ |
| Developer Experience | ||
| Data types defined | ✓ | 0.5 |
| Logging/Auditing | 0.5 | ✓ |
| Object-Graph Mapper | · | ✓ |
| Reactive programming | · | ✓ |
| Documentation up-to-date | 0.5 | ✓ |
| Binary protocol | ✓ | ✓ |
| CLI | · | ✓ |
| GUI | ✓ | ✓ |
| Data Model | ||
| Multi-database | · | ✓ |
| Graph-native data | ✓ | ✓ |
| REST API | ✓ | ✓ |
| Query Language | ✓ | ✓ |
| Transactions | ||
| Granular locking | · | · |
| Multiple isolation levels | · | 0.5 |
| Read committed transaction | · | ✓ |
| Transaction support | ✓ | ✓ |
| Schema & Security | ||
| Constraints | · | ✓ |
| Schema support | ✓ | ✓ |
| Secondary indexes | ✓ | ✓ |
| Server side procedures | · | ✓ |
| Triggers | · | ✓ |
| Authentication | ✓ | ✓ |
| Authorization | ✓ | ✓ |
| Data encryption | ✓ | 0.5 |
Links
- Dgraph · website · github · full profile
- SurrealDB · website · github · full profile