SQL and NoSQL Databases Software architectures performance analysis and assessments - A Systematic Literature review

Wisal Khan, Teerath Kumar, Zhang Cheng, Kislay Raj, Arunabha M. Roy, Bin LuoarXiv 2022

TL;DR

This paper presents a systematic literature review of 142 studies analyzing the performance, scalability, and architectural tradeoffs between SQL and NoSQL databases. The authors conclude that NoSQL is a complement to—rather than a replacement for—relational databases, while highlighting a critical research and engineering gap in cloud data portability and unified APIs.

What Problem Does This Paper Address?

As organizations grapple with the "5Vs" of Big Data (Volume, Velocity, Variety, Veracity, and Value), software architects face a classic dilemma: stick with traditional relational databases (SQL) or migrate to non-relational alternatives (NoSQL). SQL databases guarantee strict ACID properties (Atomicity, Consistency, Isolation, Durability) but struggle with horizontal scaling. NoSQL databases favor the BASE properties (Basically Available, Soft state, Eventual consistency) to achieve massive horizontal scalability, but they lack a unified query language and rigid schema enforcement.

Beyond the database engine itself, this paper addresses the challenges of deploying these systems in the cloud. When using Database-as-a-Service (DBaaS) across multiple Cloud Service Providers (CSPs), developers run into severe interoperability and data portability issues. Because each cloud vendor utilizes proprietary APIs, switching providers or building multi-cloud architectures often results in costly vendor lock-in.

Methods

The authors conducted a Systematic Literature Review (SLR) following well-established software engineering guidelines (the Kitchenham protocol). Their pipeline filtered an initial pool of approximately 13,000 papers down to 142 core studies using a multi-phase title, abstract, and full-text screening process.

To add a unique analytical flavor to the review, the authors extracted database co-occurrences within the selected literature to map out which databases are frequently compared or used together, generating a dataset of 301 database pairs. They then applied two machine learning/data mining techniques:

  1. Gaussian Naive Bayes: To predict database pairings based on literature trends.
  2. Apriori Algorithm: To discover frequent patterns and association rules among the database engines studied in the wild.

Datasets

The primary dataset used for evaluation is the authors' own curated mapping of database engines across the 142 selected primary studies.

During their predictive analysis, the authors encountered a severe data imbalance issue: MongoDB appeared in more than 22% of the collected data, causing the Naive Bayes model to over-predict MongoDB for almost every pairing. To counter this, the authors generated a synthetic balanced dataset by ignoring over-represented names and increasing the proportions of under-represented databases to achieve a more uniform distribution.

Key Insights and Ideas

  • NoSQL is Not a Drop-In Replacement: The literature overwhelmingly confirms that NoSQL and SQL are design partners, not rivals. SQL remains the gold standard for complex transactional systems (OLTP) and structured data consistency, while NoSQL excels at handling messy, unpredictable, and distributed big data.
  • The Core Features of NoSQL: The paper outlines the essential characteristics that define the next generation of databases, emphasizing their schema-free nature and simple APIs.
Figure 2: NoSQL – The essential features.
  • The CAP Theorem Reality Check: Distributed systems must navigate the tradeoffs between Consistency, Availability, and Partition Tolerance. As shown in the classic CAP Venn diagram, NoSQL databases typically choose to support either AP (Availability/Partition Tolerance) or CP (Consistency/Partition Tolerance) at the expense of strict, immediate consistency.
Figure 2: CAP Combinations.
  • The Cloud Interoperability Gap: While open standards like CIMI and OCCI exist to mitigate cloud interoperability issues, they are almost exclusively designed for the Infrastructure-as-a-Service (IaaS) layer. The PaaS and DBaaS layers remain highly fragmented, creating a strong demand for unified API frameworks (such as CDPort or SecloudDB) to ease data movement.

Key Results

  • Study Demographics: Of the 142 selected papers, 52% were conference proceedings, 35% were journal articles, and 11% were technical reports/theses. The bulk of the literature was published after 2008, reflecting the post-Big Data explosion.
  • Database Popularity in Research: MongoDB (Document store), MySQL (SQL), Oracle (SQL), Cassandra (Column-family), and PostgreSQL (SQL) were the most heavily researched and compared database flavors.
  • Association Rules: Using the Apriori algorithm, the authors found strong association rules in the literature. For example, rules mapping CouchDB -> Cassandra and Cassandra -> MongoDB yielded exceptionally high confidence scores (0.88 and 0.94, respectively), showing that researchers who evaluate document stores frequently benchmark them against specific wide-column or alternative document stores.

Limitations and Future Work

The primary limitation acknowledged in the paper is the inherent data imbalance within the academic literature, which heavily biases predictive models toward dominant players like MongoDB. Furthermore, while the paper advocates for unified APIs to solve cloud portability, it notes that existing frameworks lack widespread industry adoption and often introduce security or performance overhead.

For future work, the authors suggest exploring "hybrid" architectural evaluations:

  1. Evaluating the performance of a strictly denormalized approach within SQL RDBMSs against MongoDB.
  2. Assessing a normalized approach within MongoDB against traditional SQL databases.
  3. Advancing parallel geospatial query optimization within NoSQL architectures to handle the influx of IoT and smart city data.

Summary updated

BibTeX
@misc{khan2022sql,
  author = {Wisal Khan and Teerath Kumar and Zhang Cheng and Kislay Raj and Arunabha M. Roy and Bin Luo},
  title = {{SQL and NoSQL Databases Software architectures performance analysis and assessments - A Systematic Literature review}},
  year = {2022},
  eprint = {2209.06977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.06977},
}
Figure