DB-EnginesextremeDB - Data management wherever you need itEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by Redgate Software

DBMS > Apache Spark (SQL) vs. Neo4j vs. PostgreSQL

System Properties Comparison Apache Spark (SQL) vs. Neo4j vs. PostgreSQL

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameApache Spark (SQL)  Xexclude from comparisonNeo4j  Xexclude from comparisonPostgreSQL  Xexclude from comparison
DescriptionApache Spark SQL is a component on top of 'Spark Core' for structured data processingScalable, ACID-compliant graph database designed with a high-performance distributed cluster architecture, available in self-hosted and cloud offeringsWidely used open source RDBMS infoDeveloped as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL
Primary database modelRelational DBMSGraph DBMSRelational DBMS infowith object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.
Secondary database modelsDocument store
Graph DBMS infowith Apache Age
Spatial DBMS
Vector DBMS infowith pgvector extension
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score20.40
Rank#29  Overall
#18  Relational DBMS
Score47.59
Rank#20  Overall
#1  Graph DBMS
Score667.25
Rank#4  Overall
#4  Relational DBMS
Websitespark.apache.org/­sqlneo4j.comwww.postgresql.org
Technical documentationspark.apache.org/­docs/­latest/­sql-programming-guide.htmlneo4j.com/­docswww.postgresql.org/­docs
DeveloperApache Software FoundationNeo4j, Inc.PostgreSQL Global Development Group infowww.postgresql.org/­developer
Initial release201420071989 info1989: Postgres, 1996: PostgreSQL
Current release3.5.0 ( 2.13), September 20235.23, August 202416.4, August 2024
License infoCommercial or Open SourceOpen Source infoApache 2.0Open Source infoGPL version3, commercial licenses availableOpen Source infoBSD
Cloud-based only infoOnly available as a cloud servicenonono
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
PostgreSQL Flex @ STACKIT offers managed PostgreSQL Instances with adjustable CPU, RAM, storage amount and speed and several extensions available, in enterprise grade to perfectly match all application requirements. All 100% GDPR-compliant.
Implementation languageScalaJava, ScalaC
Server operating systemsLinux
OS X
Windows
Linux infoCan also be used server-less as embedded Java database.
OS X
Solaris
Windows
FreeBSD
HP-UX
Linux
NetBSD
OpenBSD
OS X
Solaris
Unix
Windows
Data schemeyesschema-free and schema-optionalyes
Typing infopredefined data types such as float or dateyesyesyes
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.noyes infospecific XML-type available, but no XML query functionality.
Secondary indexesnoyes infopluggable indexing subsystem, by default Apache Luceneyes
SQL infoSupport of SQLSQL-like DML and DDL statementsnoyes infostandard with numerous extensions
APIs and other access methodsJDBC
ODBC
Bolt protocol
Cypher query language
Java API
Neo4j-OGM infoObject Graph Mapper
RESTful HTTP API
Spring Data Neo4j
TinkerPop 3
ADO.NET
JDBC
native C library
ODBC
streaming API for large objects
Supported programming languagesJava
Python
R
Scala
.Net
Clojure
Elixir
Go
Groovy
Haskell
Java
JavaScript
Perl
PHP
Python
Ruby
Scala
.Net
C
C++
Delphi
Java infoJDBC
JavaScript (Node.js)
Perl
PHP
Python
Tcl
Server-side scripts infoStored proceduresnoyes infoUser defined Procedures and Functionsuser defined functions inforealized in proprietary language PL/pgSQL or with common languages like Perl, Python, Tcl etc.
Triggersnoyes infovia event handleryes
Partitioning methods infoMethods for storing different data on different nodesyes, utilizing Spark Coreyes using Neo4j Fabricpartitioning by range, list and (since PostgreSQL 11) by hash
Replication methods infoMethods for redundantly storing data on multiple nodesnoneCausal Clustering using Raft protocol infoavailable in in Enterprise Version onlySource-replica replication infoother methods possible by using 3rd party extensions
MapReduce infoOffers an API for user-defined Map/Reduce methodsnono
Consistency concepts infoMethods to ensure consistency in a distributed systemCausal and Eventual Consistency configurable in Causal Cluster setup
Immediate Consistency in stand-alone mode
Immediate Consistency
Foreign keys infoReferential integritynoyes infoRelationships in graphsyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of datanoACIDACID
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyesyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nono
User concepts infoAccess controlnoUsers, roles and permissions. Pluggable authentication with supported standards (LDAP, Active Directory, Kerberos)fine grained access rights according to SQL-standard
More information provided by the system vendor
Apache Spark (SQL)Neo4jPostgreSQL
News

LLM Knowledge Graph Builder Back-End Architecture and API Overview
14 April 2025

Build an Intelligent Movie Search With Neo4j and Vertex AI
14 April 2025

This Week in Neo4j: NODES, GraphRAG, Agents, Knowledge Graph and more
12 April 2025

Google Cloud & Neo4j: Teaming Up at the Intersection of Knowledge Graphs, Agents, MCP, and Natural Language Interfaces
9 April 2025

Neo4j and Google Distributed Cloud: Bringing Graph Technology to Air-Gapped Environments
9 April 2025

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services
3rd parties
» more

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
Apache Spark (SQL)Neo4jPostgreSQL
DB-Engines blog posts

Applying Graph Analytics to Game of Thrones
12 June 2019, Amy Hodler & Mark Needham, Neo4j (guest author)

MySQL, PostgreSQL and Redis are the winners of the March ranking
2 March 2016, Paul Andlinger

The openCypher Project: Help Shape the SQL for Graphs
22 December 2015, Emil Eifrem (guest author)

show all

PostgreSQL is the DBMS of the Year 2023
2 January 2024, Matthias Gelbmann, Paul Andlinger

Snowflake is the DBMS of the Year 2022, defending the title from last year
3 January 2023, Matthias Gelbmann, Paul Andlinger

Snowflake is the DBMS of the Year 2021
3 January 2022, Paul Andlinger, Matthias Gelbmann

show all

Recent citations in the news

Scala vs Python for Apache Spark: An In-depth Comparison With Use Cases For Each
12 April 2025, Simplilearn.com

Introducing AWS Glue 5.0 for Apache Spark
4 December 2024, Amazon Web Services

Kyuubi + Spark: Power of Big Data | by Aleksei Aleinikov | Feb, 2025
20 February 2025, DataDrivenInvestor

How to run Pandas code on Spark
25 January 2025, Theodo Data & AI

18 top big data tools and technologies to know about in 2025
22 January 2025, TechTarget

provided by Google News

Neo4j Surpasses $200M in Revenue, Accelerates Leadership in GenAI-Driven Graph Technology
19 November 2024, PR Newswire

Data Science Firm Neo4j Reportedly Prepping IPO
19 November 2024, PYMNTS.com

Free Software Foundation rides to defend AGPLv3 against Neo4j license add-ons
4 March 2025, theregister.com

Swedish company accelerates toward IPO with $50M investment at $2B valuation - ArcticStartup
28 November 2024, ArcticStartup

Discover Graph Databases with Neo4j and PHP
7 November 2024, SitePoint

provided by Google News

Fileless XMRig-C3 Cryptominer Targets PostgreSQL Servers
31 March 2025, wiz.io

How Heroku migrated hundreds of thousands of self-managed PostgreSQL databases to Amazon Aurora
10 April 2025, Amazon Web Services

YugabyteDB Advances PostgreSQL Compatibility with PG15 Features
16 April 2025, MSN

PostgreSQL Database Lands Initial Support For IO_uring: "Can Be Considerably Faster"
27 March 2025, Phoronix

Springtail: $2.5 Million (Pre-Seed) Raised To Scale PostgreSQL Performance
12 April 2025, Pulse 2.0

provided by Google News



Share this page

Featured Products

Datastax Astra logo

Bring all your data to Generative AI applications with vector search enabled by the most scalable
vector database available.
Try for Free

Neo4j logo

See for yourself how a graph database can make your life easier.
Use Neo4j online for free.

Milvus logo

Vector database designed for GenAI, fully equipped for enterprise implementation.
Try Managed Milvus for Free

SingleStore logo

The data platform to build your intelligent applications.
Try it free.

RaimaDB logo

RaimaDB, embedded database for mission-critical applications. When performance, footprint and reliability matters.
Try RaimaDB for free.

Present your product here