📜  Neo4j 和 MongoDB 的区别

📅  最后修改于: 2021-09-15 01:27:25             🧑  作者: Mango

1. Neo4j :
它是最著名的图形数据库管理系统,也是 Neo4j, Inc. 开发的 NoSQL 数据库系统。它不同于 Mysql 或 MongoDB,因为它具有与其他数据库管理系统相比的特殊功能。 Neo4j 还以非表格格式或非 Jason 格式的图形形式存储和呈现数据。在这整个数据由节点表示,在那里你可以创建节点之间的关系,这意味着整个数据库集合看起来像一个图形,这使得 Neo4j 与其他数据库管理系统不同。

2. MongoDB:
它是面向文档的开源和非关系(即 NoSQL)数据库程序。它是一个跨平台的文档数据库,以键值对的形式存储数据。 MongoDB 由 MongoDB Inc. 开发,最初于 2009 年 2 月 11 日发布。MongoDB 使用具有可选模式的类 JSON 文档。它是使用 C++、Go、JavaScript、 Python语言开发的。 MongoDB 提供高速、高可用性和高可扩展性。

它使用 C++、Erlang、C、Go 语言编写,其服务器旨在为我们提供易于扩展的键值或 JSON 文档访问,具有高持续吞吐量和低延迟。

Neo4j 和 MongoDB 的区别:

S.No. Neo4j MongoDB
1. It was developed by Neo4j, Inc. It was developed by MongoDB Inc.
2. It was initially released in 2007. It was initially released on 11 February 2009.
3. It is written using Java and Scala language. It is written in C++, Go, JavaScript, Python languages.
4. It does not supports Map Reduce method. It supports Map Reduce method.
5. It has foreign keys. It does not have foreign keys.
6. Neo4j APIs and other access methods includes Bolt protocol, Cypher query language, Java API, Neo4j-OGM, RESTful HTTP, API, Spring Data Neo4j, TinkerPop 3. APIs and other access methods include proprietary protocol using JSON.
7. It is data schema free and schema optional. It is data schema free.
8. It does not support SQL. It provides support to Read-only SQL queries via the MongoDB Connector for BI.
9. Its primary database model is is Graph DBMS. Its primary database model is Document Store.
10. Neo4j supports programming languages which are .Net, Clojure, Elixir, Go, Groovy, Haskell, Java, JavaScript, Perl, PHP, Python, Ruby and Scala. It supports D, Dart, Delphi, Erlang, Go, Groovy, Lisp, Lua, MatLab, Perl, PHP, PowerShell, Prolog, Actionscript, C, C##, C++, Clojure, Python, R, Ruby, Haskell, Java, Javascript, Scala, Smalltalk programming languages.
11. It does not supports Partitioning methods. It supports Sharding Partitioning methods.
12. Neo4j is uesd by famous companies like medium.com., Stack, Fiverr, Fundamentei, Trendyol Group, double slash, ingsmen Software, GAPO, etc. MongoDB is used by Famous companies like Amadeus, ViaVarejo, Craftbase, Lyft, etc.