TL;DR
BigDAWG is a "polystore" database system that allows users to query across diverse, heterogeneous storage engines (like SQL, NoSQL, and array stores) through a single interface. By abstracting databases into "islands" based on their data models, BigDAWG enables high-performance analytics on complex datasets while adding only about 10% overhead to total execution time.
What Problem Does This Paper Address?
The database community has long recognized that "one size does not fit all." A relational database is great for structured records, but it struggles with massive arrays of sensor data or unstructured text. While specialized engines (like SciDB for arrays or Accumulo for key-value pairs) solve these individual problems, modern applications often need to analyze all these data types simultaneously.
Managing these as isolated silos is a nightmare for developers, who must manually write complex code to move data between systems. Furthermore, creating direct connectors between $N$ different database systems requires $O(N^2)$ connections, which is unscalable. BigDAWG addresses this by providing a unified middleware that integrates these disparate engines into a cohesive system.
Methods
The authors introduce a multi-layered architecture designed to balance location independence (the user doesn't need to know where data lives) with semantic completeness (the user can still use the unique features of a specific engine).
Key components include:
- Islands: The primary abstraction. An island represents a data model (e.g., Relational, Array, or Text). Users write queries against an island's specific operations.
- Shims: These act as translators, converting island-level queries into the native language of a specific storage engine (e.g., turning a Relational Island query into PostgreSQL SQL).
- Casts: Software components that handle the direct movement of data between different storage engines.
- Middleware Stack: This includes an Optimizer to generate query plans, a Monitor that tracks performance metrics to inform future planning, an Executor to coordinate sub-queries, and a Migrator to handle data motion.
The system uses the BigDAWG Query Language (BQL), which uses functional tokens like bdrel() or bdarray() to scope sub-queries to specific islands, allowing for complex, cross-engine operations in a single statement.
Datasets
The authors evaluated BigDAWG using the MIMIC II medical dataset. This is a quintessential polystore use case because it contains:
- Structured patient history: Stored in PostgreSQL (Relational).
- High-frequency physiologic waveforms: Stored in SciDB (Array).
- Unstructured clinical notes: Stored in Accumulo (Text/Key-Value).
Key Insights and Ideas
- The Power of Islands: By grouping engines by data model rather than individual brand, BigDAWG avoids the $O(N^2)$ connector problem. You only need to connect an engine to an island once.
- Performance-Driven Planning: The system doesn't just guess the best way to run a query. The Monitor records execution times for various plans, allowing the Optimizer to "learn" the most efficient path for future similar queries.
- Migration is the Real Cost: The study reveals that the actual middleware logic is quite lean. The vast majority of time in complex queries is spent on the databases themselves or moving data across the network.
- Native vs. Cross-Island: Migration between databases within the same island is significantly faster because the system can leverage native selection and insertion routines.
Key Results
The performance analysis focused on the overhead introduced by the BigDAWG middleware compared to the time spent on actual data processing and migration.
- Minimal Overhead: For complex queries involving multiple engines, BigDAWG's internal logic (optimization, planning, etc.) accounts for only about 10% of the total execution time.
- Bottleneck Identification: In a SciDB-to-Postgres inter-island query, roughly 75% of the time was consumed by database execution, RPC dispatch, and data transmission.
As shown in the boxplot below, queries requiring migration between engines naturally take longer than single-engine queries, but the system remains efficient enough for practical use.
Limitations and Future Work
While Version 0.1 is a significant milestone, the authors acknowledge several areas for growth:
- Engine Support: The initial release supports PostgreSQL, Accumulo, and SciDB. Future versions aim to add MySQL, Vertica (columnar), and S-Store (streaming).
- Migration Efficiency: The authors plan to build a distributed migrator and improve the efficiency of the Accumulo connection.
- Concurrency: Future work will involve moving logging and cleanup tasks to background threads and implementing multithreaded execution for long-running tasks.
- Security: There is an ongoing interest in integrating privacy-preserving technologies to protect data as it moves between different engines in the polystore.
Summary updated