📜  Neo4j和MongoDB之间的区别

📅  最后修改于: 2021-08-27 06:51:38             🧑  作者: 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.