You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/20-concepts/03-workflows.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# A New Paradigm
1
+
# Relational Workflows
2
2
3
-
## The Entity-Workflow Model: A New Paradigm for Relational Databases
3
+
## A New Paradigm for Relational Databases
4
4
5
5
The relational data model, while powerful, offers considerable semantic flexibility that can be both a blessing and a curse. This flexibility has led to the development of distinct conceptual frameworks for understanding and applying relational principles in database design and operations. While these approaches share common underlying constructs (tables, data types, primary keys, foreign keys, etc.), they operate on fundamentally different semantics that lead to distinct approaches to database design, data manipulation, and query formation.
6
6
7
-
This book introduces a paradigm shift in how we think about relational database design and implementation: the **Entity-Workflow Model**. This model is embodied by DataJoint and affects how we think about database design, data manipulation, and query formation.
7
+
This book introduces a paradigm shift in how we think about relational database design and implementation: the **Relational Workflow Model**. This model is embodied by DataJoint and affects how we think about database design, data manipulation, and query formation.
8
8
9
-
To understand the significance of the Entity-Workflow Model, we must first examine the two dominant paradigms that preceded it and their inherent limitations.
9
+
To understand the significance of the Relational Workflow Model, we must first examine the two dominant paradigms that preceded it and their inherent limitations.
10
10
11
11
## The Mathematical Foundation: Codd's Predicate Calculus Approach
12
12
@@ -68,6 +68,7 @@ erDiagram
68
68
```
69
69
Entity-relationship diagram in [Crow's Foot notation](https://mermaid.js.org/syntax/entityRelationshipDiagram.html).
70
70
:::
71
+
```
71
72
72
73
73
74
### Limitations
@@ -79,9 +80,9 @@ Despite its success, ERM still suffers from fundamental gaps:
79
80
- **Static Relationships**: Treats relationships as static rather than operational
80
81
- **Translation Complexity**: Converting ERM designs to SQL requires mental translation between entity concepts and relational predicates
81
82
82
-
## The Entity-Workflow Model: A Paradigm Shift
83
+
## The Relational Workflow Model: A Paradigm Shift
83
84
84
-
The **Entity-Workflow Model**, pioneered by DataJoint, represents a fundamental evolution that addresses the limitations of both previous approaches while building on their strengths.
85
+
The **Relational Workflow Model**, pioneered by DataJoint, represents a fundamental evolution that addresses the limitations of both previous approaches while building on their strengths.
85
86
86
87
### Revolutionary Core Concepts
87
88
@@ -99,9 +100,9 @@ The **Entity-Workflow Model**, pioneered by DataJoint, represents a fundamental
99
100
100
101
This principle extends entity normalization with temporal and operational dimensions, creating a unified framework for design, implementation, and querying.
101
102
102
-
### Why the Entity-Workflow Model Matters
103
+
### Why the Relational Workflow Model Matters
103
104
104
-
The Entity-Workflow Model addresses the fundamental challenges that have plagued relational database practice:
105
+
The Relational Workflow Model addresses the fundamental challenges that have plagued relational database practice:
105
106
106
107
#### 1. **Unified Design and Implementation**
107
108
@@ -114,7 +115,7 @@ Unlike the ERM-SQL gap, DataJoint provides **unified diagramming, definition, an
114
115
115
116
#### 2. **Temporal and Operational Awareness**
116
117
117
-
While ERM focuses on "what entities exist," the Entity-Workflow Model asks "when and how are entities created?" This temporal dimension is crucial for:
118
+
While ERM focuses on "what entities exist," the Relational Workflow Model asks "when and how are entities created?" This temporal dimension is crucial for:
118
119
119
120
- **Scientific Workflows**: Where data processing follows strict sequences
120
121
- **Business Processes**: Where operations must occur in specific orders
## The DataJoint Implementation: Theory Made Practical
157
158
158
-
DataJoint represents the practical embodiment of the Entity-Workflow Model, developed over a decade of neuroscience research [@10.48550/arXiv.1807.11104].
159
+
DataJoint represents the practical embodiment of the Relational Workflow Model, developed over a decade of neuroscience research [@10.48550/arXiv.1807.11104].
159
160
160
161
### The Schema as Executable Specification
161
162
162
-
The Entity-Workflow Model has a profound implication: **the database schema itself becomes an executable specification** of your workflow.
163
+
The Relational Workflow Model has a profound implication: **the database schema itself becomes an executable specification** of your workflow.
163
164
164
165
When you define a DataJoint schema, you simultaneously:
165
166
-**Design** the conceptual model (what are the workflow steps?)
@@ -245,7 +246,7 @@ Unlike SQL's natural joins that can produce unexpected results when tables share
245
246
246
247
### Practical Benefits
247
248
248
-
The Entity-Workflow Model delivers unprecedented advantages:
249
+
The Relational Workflow Model delivers unprecedented advantages:
249
250
250
251
-**Seamless Design-to-Implementation**: No conceptual gap between design and code
@@ -294,7 +295,7 @@ This makes DataJoint a **specialized dialect** of the relational model, optimize
294
295
295
296
## The Future of Database Design
296
297
297
-
The Entity-Workflow Model represents more than an incremental improvement—it's a **paradigm shift** that addresses fundamental limitations in how we think about and implement relational databases.
298
+
The Relational Workflow Model represents more than an incremental improvement—it's a **paradigm shift** that addresses fundamental limitations in how we think about and implement relational databases.
298
299
299
300
### Why This Matters Now
300
301
@@ -308,14 +309,14 @@ The Entity-Workflow Model represents more than an incremental improvement—it's
308
309
309
310
### The Path Forward
310
311
311
-
This book demonstrates how the Entity-Workflow Model, embodied in DataJoint, provides:
312
+
This book demonstrates how the Relational Workflow Model, embodied in DataJoint, provides:
312
313
313
314
1.**A unified conceptual framework** for database design, implementation, and querying
314
315
2.**Native support for temporal and operational aspects** that previous models ignored
315
316
3.**Practical tools** that eliminate the traditional design-implementation gap
316
317
4.**A foundation** for the next generation of database applications
317
318
318
-
The Entity-Workflow Model isn't just another approach to relational databases—it's the evolution that makes relational databases truly fit for modern computational workflows and collaborative data science.
319
+
The Relational Workflow Model isn't just another approach to relational databases—it's the evolution that makes relational databases truly fit for modern computational workflows and collaborative data science.
0 commit comments