SlideShare a Scribd company logo
1 of 32
Download to read offline
Data Modeling A Scheduling Application
Adam Hutson
Data Architect, DataScale Inc.
© DataStax, All Rights Reserved.
Who am I & What do we do?
2
Adam Hutson
Data Architect @ DataScale -> www.datascale.io
DataStax MVP for Apache Cassandra
DataScale provides hosted data platforms as a service
Offering Cassandra & Spark, with more to come
Currently hosted in Amazon & Azure
Data Modeling Stages
© DataStax, All Rights Reserved.
Data Modeling Stages
• Maps concepts, relationships,
& constraints
• Consists of entity classes with
characteristic attributes
• Nothing to do with a database
4
© DataStax, All Rights Reserved.
Data Modeling Stages
• Maps concepts, relationships,
& constraints
• Consists of entity classes with
characteristic attributes
• Nothing to do with a database
5
• Entities become tables
• Attributes become columns/
fields
• Relationships become key
• Entity Relationship Diagram
© DataStax, All Rights Reserved.
Data Modeling Stages
• Maps concepts, relationships,
& constraints
• Consists of entity classes with
characteristic attributes
• Nothing to do with a database
6
• Entities become tables
• Attributes become columns/
fields
• Relationships become key
• Entity Relationship Diagram
• Applies constraints of chosen
database
• Table structure using syntax
• Data types, keys, relationships
© DataStax, All Rights Reserved.
Data Modeling Stages
7
© DataStax, All Rights Reserved.
Data Modeling Stages
8
© DataStax, All Rights Reserved.
Data Modeling Stages
9
Scheduling Application
© DataStax, All Rights Reserved.
Scheduling Application Definition
What is it?
Application to schedule service appointments.
Who is it for?
Any employee of the service company.
What does it do?
Sets & retrieves appointments for service.
Client/Service detail requests.
Provider/Service detail requests.
Services delivered/scheduled over time.
11
Conceptual Model
© DataStax, All Rights Reserved.
Conceptual Model
13
Logical Model
© DataStax, All Rights Reserved.
Logical Model
15
Desired Queries
© DataStax, All Rights Reserved.
Desired Queries
17
• Add new client information
• Get client info by name or phone
• Create appointment for specific date/time, client, service, & service technician
• Get all scheduled appointments for specified client name or phone
• Get all available times to schedule appointment for specified service & service technician
• Get all scheduled appointments for specified service technician
Physical Model
© DataStax, All Rights Reserved.
Physical Model
19
Add new client information
© DataStax, All Rights Reserved.
Physical Model
20
Add new client information
© DataStax, All Rights Reserved.
Physical Model
21
Get client info by name or phone
© DataStax, All Rights Reserved.
Physical Model
22
Get client info by name or phone
© DataStax, All Rights Reserved.
Physical Model
23
Create appointment for specific date/time, client, service, & service technician
© DataStax, All Rights Reserved.
Physical Model
24
Create appointment for specific date/time, client, service, & service technician
© DataStax, All Rights Reserved.
Physical Model
25
Get all scheduled appointments for specified client name or phone
© DataStax, All Rights Reserved.
Physical Model
26
Get all scheduled appointments for specified client name or phone
© DataStax, All Rights Reserved.
Physical Model
27
Get all available times to schedule appointment for specified service & service technician
© DataStax, All Rights Reserved.
Physical Model
28
Get all available times to schedule appointment for specified service & service technician
© DataStax, All Rights Reserved.
Physical Model
29
Get all scheduled appointments for specified service technician
© DataStax, All Rights Reserved.
Physical Model
30
Get all scheduled appointments for specified service technician
© DataStax, All Rights Reserved.
Physical Model
31
End Product: A complete script to create your entire Data Model in Cassandra
Thank You!
Questions?
Adam Hutson @AdamHutson
adam@datascale.io @DataScaleInc

More Related Content

What's hot

What's hot (20)

Aleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDAAleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDA
 
DataStax | Adversarial Modeling: Graph, ML, and Analytics for Identity Fraud ...
DataStax | Adversarial Modeling: Graph, ML, and Analytics for Identity Fraud ...DataStax | Adversarial Modeling: Graph, ML, and Analytics for Identity Fraud ...
DataStax | Adversarial Modeling: Graph, ML, and Analytics for Identity Fraud ...
 
Can My Inventory Survive Eventual Consistency?
Can My Inventory Survive Eventual Consistency?Can My Inventory Survive Eventual Consistency?
Can My Inventory Survive Eventual Consistency?
 
NoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
NoSQL on MySQL - MySQL Document Store by Vadim TkachenkoNoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
NoSQL on MySQL - MySQL Document Store by Vadim Tkachenko
 
Unleash the power of Azure Data Factory
Unleash the power of Azure Data Factory Unleash the power of Azure Data Factory
Unleash the power of Azure Data Factory
 
Data Modeling Basics for the Cloud with DataStax
Data Modeling Basics for the Cloud with DataStaxData Modeling Basics for the Cloud with DataStax
Data Modeling Basics for the Cloud with DataStax
 
The new big data
The new big dataThe new big data
The new big data
 
Encryption and Masking for Sensitive Apache Spark Analytics Addressing CCPA a...
Encryption and Masking for Sensitive Apache Spark Analytics Addressing CCPA a...Encryption and Masking for Sensitive Apache Spark Analytics Addressing CCPA a...
Encryption and Masking for Sensitive Apache Spark Analytics Addressing CCPA a...
 
How jKool Analyzes Streaming Data in Real Time with DataStax
How jKool Analyzes Streaming Data in Real Time with DataStaxHow jKool Analyzes Streaming Data in Real Time with DataStax
How jKool Analyzes Streaming Data in Real Time with DataStax
 
Azure Data Factory v2
Azure Data Factory v2Azure Data Factory v2
Azure Data Factory v2
 
Cloudian HyperStore Operating Environment
Cloudian HyperStore Operating EnvironmentCloudian HyperStore Operating Environment
Cloudian HyperStore Operating Environment
 
Apache Iceberg Presentation for the St. Louis Big Data IDEA
Apache Iceberg Presentation for the St. Louis Big Data IDEAApache Iceberg Presentation for the St. Louis Big Data IDEA
Apache Iceberg Presentation for the St. Louis Big Data IDEA
 
A Gentle Introduction to GPU Computing by Armen Donigian
A Gentle Introduction to GPU Computing by Armen DonigianA Gentle Introduction to GPU Computing by Armen Donigian
A Gentle Introduction to GPU Computing by Armen Donigian
 
Let’s get to know Snowflake
Let’s get to know SnowflakeLet’s get to know Snowflake
Let’s get to know Snowflake
 
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
 Improving Apache Spark™ In-Memory Computing with Apache Ignite™ Improving Apache Spark™ In-Memory Computing with Apache Ignite™
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
 
Webinar - The Agility Challenge - Powering Cloud Apps with Multi-Model & Mixe...
Webinar - The Agility Challenge - Powering Cloud Apps with Multi-Model & Mixe...Webinar - The Agility Challenge - Powering Cloud Apps with Multi-Model & Mixe...
Webinar - The Agility Challenge - Powering Cloud Apps with Multi-Model & Mixe...
 
Presto: Fast SQL-on-Anything Across Data Lakes, DBMS, and NoSQL Data Stores
Presto: Fast SQL-on-Anything Across Data Lakes, DBMS, and NoSQL Data StoresPresto: Fast SQL-on-Anything Across Data Lakes, DBMS, and NoSQL Data Stores
Presto: Fast SQL-on-Anything Across Data Lakes, DBMS, and NoSQL Data Stores
 
How DataStax Enterprise and Azure Make Your Apps Scale from Day 1
How DataStax Enterprise and Azure Make Your Apps Scale from Day 1How DataStax Enterprise and Azure Make Your Apps Scale from Day 1
How DataStax Enterprise and Azure Make Your Apps Scale from Day 1
 
DataStax | Building a Spark Streaming App with DSE File System (Rocco Varela)...
DataStax | Building a Spark Streaming App with DSE File System (Rocco Varela)...DataStax | Building a Spark Streaming App with DSE File System (Rocco Varela)...
DataStax | Building a Spark Streaming App with DSE File System (Rocco Varela)...
 
Installing your influx enterprise cluster
Installing your influx enterprise clusterInstalling your influx enterprise cluster
Installing your influx enterprise cluster
 

Viewers also liked

SaaS Enablement Challenges & Approaches
SaaS Enablement Challenges & ApproachesSaaS Enablement Challenges & Approaches
SaaS Enablement Challenges & Approaches
Impetus Technologies
 
Cassandra Explained
Cassandra ExplainedCassandra Explained
Cassandra Explained
Eric Evans
 
Treino do Corinthians (07/07/2011)
Treino do Corinthians (07/07/2011)Treino do Corinthians (07/07/2011)
Treino do Corinthians (07/07/2011)
Lorena Ribeiro
 
EdComs Classroom Everywhere - Michaela Kirsop-Holdford
 EdComs Classroom Everywhere - Michaela Kirsop-Holdford EdComs Classroom Everywhere - Michaela Kirsop-Holdford
EdComs Classroom Everywhere - Michaela Kirsop-Holdford
EdComs
 
ScrumMaster activities in building a winning self organized teams - Naveen Na...
ScrumMaster activities in building a winning self organized teams - Naveen Na...ScrumMaster activities in building a winning self organized teams - Naveen Na...
ScrumMaster activities in building a winning self organized teams - Naveen Na...
Naveen Nanjundappa
 

Viewers also liked (18)

SQL Server 2008 Development for Programmers
SQL Server 2008 Development for ProgrammersSQL Server 2008 Development for Programmers
SQL Server 2008 Development for Programmers
 
SaaS Enablement Challenges & Approaches
SaaS Enablement Challenges & ApproachesSaaS Enablement Challenges & Approaches
SaaS Enablement Challenges & Approaches
 
Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...
Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...
Cassandra Summit 2015 - Building a multi-tenant API PaaS with DataStax Enterp...
 
Cassandra By Example: Data Modelling with CQL3
Cassandra By Example: Data Modelling with CQL3Cassandra By Example: Data Modelling with CQL3
Cassandra By Example: Data Modelling with CQL3
 
Cassandra Explained
Cassandra ExplainedCassandra Explained
Cassandra Explained
 
HELOC COMBO
HELOC COMBOHELOC COMBO
HELOC COMBO
 
Budgetirovanie v 1 c 1
Budgetirovanie v 1 c 1Budgetirovanie v 1 c 1
Budgetirovanie v 1 c 1
 
How To attract People To Your Brand’s Story
How To attract People To Your Brand’s StoryHow To attract People To Your Brand’s Story
How To attract People To Your Brand’s Story
 
Creativity
CreativityCreativity
Creativity
 
J1939 stack integration with an advanced EPS system | Automotive Tier-I Suppl...
J1939 stack integration with an advanced EPS system | Automotive Tier-I Suppl...J1939 stack integration with an advanced EPS system | Automotive Tier-I Suppl...
J1939 stack integration with an advanced EPS system | Automotive Tier-I Suppl...
 
Treino do Corinthians (07/07/2011)
Treino do Corinthians (07/07/2011)Treino do Corinthians (07/07/2011)
Treino do Corinthians (07/07/2011)
 
Caballero carmelo comic
Caballero carmelo comicCaballero carmelo comic
Caballero carmelo comic
 
Virtualización de los puestos de trabajo: Ventajas de migrar los PCs a la nube
Virtualización de los puestos de trabajo: Ventajas de migrar los PCs a la nubeVirtualización de los puestos de trabajo: Ventajas de migrar los PCs a la nube
Virtualización de los puestos de trabajo: Ventajas de migrar los PCs a la nube
 
Microsoft Project workshop in Pune 6th & 7th August
Microsoft Project workshop in Pune 6th & 7th AugustMicrosoft Project workshop in Pune 6th & 7th August
Microsoft Project workshop in Pune 6th & 7th August
 
Safe Learning Environment_HEAL2013
Safe Learning Environment_HEAL2013Safe Learning Environment_HEAL2013
Safe Learning Environment_HEAL2013
 
06 jaime gonzalez_trie
06 jaime gonzalez_trie06 jaime gonzalez_trie
06 jaime gonzalez_trie
 
EdComs Classroom Everywhere - Michaela Kirsop-Holdford
 EdComs Classroom Everywhere - Michaela Kirsop-Holdford EdComs Classroom Everywhere - Michaela Kirsop-Holdford
EdComs Classroom Everywhere - Michaela Kirsop-Holdford
 
ScrumMaster activities in building a winning self organized teams - Naveen Na...
ScrumMaster activities in building a winning self organized teams - Naveen Na...ScrumMaster activities in building a winning self organized teams - Naveen Na...
ScrumMaster activities in building a winning self organized teams - Naveen Na...
 

Similar to Cassandra Summit: Data Modeling A Scheduling App

By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
IngridBuenaventura
 

Similar to Cassandra Summit: Data Modeling A Scheduling App (20)

Cassandra Summit 2014: Internet of Complex Things Analytics with Apache Cassa...
Cassandra Summit 2014: Internet of Complex Things Analytics with Apache Cassa...Cassandra Summit 2014: Internet of Complex Things Analytics with Apache Cassa...
Cassandra Summit 2014: Internet of Complex Things Analytics with Apache Cassa...
 
Vanguard's Journey with Tableau to the AWS Cloud (FSV307-S) - AWS re:Invent 2018
Vanguard's Journey with Tableau to the AWS Cloud (FSV307-S) - AWS re:Invent 2018Vanguard's Journey with Tableau to the AWS Cloud (FSV307-S) - AWS re:Invent 2018
Vanguard's Journey with Tableau to the AWS Cloud (FSV307-S) - AWS re:Invent 2018
 
Getting It Right Exactly Once: Principles for Streaming Architectures
Getting It Right Exactly Once: Principles for Streaming ArchitecturesGetting It Right Exactly Once: Principles for Streaming Architectures
Getting It Right Exactly Once: Principles for Streaming Architectures
 
Data Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksData Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech Talks
 
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
 
Database Freedom | AWS Floor28
Database Freedom | AWS Floor28Database Freedom | AWS Floor28
Database Freedom | AWS Floor28
 
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
 
Deep dive session - how to achieve database freedom
Deep dive session - how to achieve database freedomDeep dive session - how to achieve database freedom
Deep dive session - how to achieve database freedom
 
Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)Datastax - The Architect's guide to customer experience (CX)
Datastax - The Architect's guide to customer experience (CX)
 
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax EnterpriseTop 10 Best Practices for Apache Cassandra and DataStax Enterprise
Top 10 Best Practices for Apache Cassandra and DataStax Enterprise
 
Horses for Courses: Database Roundtable
Horses for Courses: Database RoundtableHorses for Courses: Database Roundtable
Horses for Courses: Database Roundtable
 
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
Webinar: DataStax and Microsoft Azure: Empowering the Right-Now Enterprise wi...
 
Building a Modern Analytic Database with Cloudera 5.8
Building a Modern Analytic Database with Cloudera 5.8Building a Modern Analytic Database with Cloudera 5.8
Building a Modern Analytic Database with Cloudera 5.8
 
AWS UK User Group Migrating 600 Databases - February 2023.pdf
AWS UK User Group Migrating 600 Databases - February 2023.pdfAWS UK User Group Migrating 600 Databases - February 2023.pdf
AWS UK User Group Migrating 600 Databases - February 2023.pdf
 
By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
By Thoughtworks | Building data as a product: The key to unlocking Data Mesh'...
 
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
Migrating Databases to the Cloud with AWS Database Migration Service (DAT207)...
 
Turning Data into Business Value with a Modern Data Platform
Turning Data into Business Value with a Modern Data PlatformTurning Data into Business Value with a Modern Data Platform
Turning Data into Business Value with a Modern Data Platform
 
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
 
Feast Feature Store - An In-depth Overview Experimentation and Application in...
Feast Feature Store - An In-depth Overview Experimentation and Application in...Feast Feature Store - An In-depth Overview Experimentation and Application in...
Feast Feature Store - An In-depth Overview Experimentation and Application in...
 
Marcel Kornacker, Software Enginner at Cloudera - "Data modeling for data sci...
Marcel Kornacker, Software Enginner at Cloudera - "Data modeling for data sci...Marcel Kornacker, Software Enginner at Cloudera - "Data modeling for data sci...
Marcel Kornacker, Software Enginner at Cloudera - "Data modeling for data sci...
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Cassandra Summit: Data Modeling A Scheduling App

  • 1. Data Modeling A Scheduling Application Adam Hutson Data Architect, DataScale Inc.
  • 2. © DataStax, All Rights Reserved. Who am I & What do we do? 2 Adam Hutson Data Architect @ DataScale -> www.datascale.io DataStax MVP for Apache Cassandra DataScale provides hosted data platforms as a service Offering Cassandra & Spark, with more to come Currently hosted in Amazon & Azure
  • 4. © DataStax, All Rights Reserved. Data Modeling Stages • Maps concepts, relationships, & constraints • Consists of entity classes with characteristic attributes • Nothing to do with a database 4
  • 5. © DataStax, All Rights Reserved. Data Modeling Stages • Maps concepts, relationships, & constraints • Consists of entity classes with characteristic attributes • Nothing to do with a database 5 • Entities become tables • Attributes become columns/ fields • Relationships become key • Entity Relationship Diagram
  • 6. © DataStax, All Rights Reserved. Data Modeling Stages • Maps concepts, relationships, & constraints • Consists of entity classes with characteristic attributes • Nothing to do with a database 6 • Entities become tables • Attributes become columns/ fields • Relationships become key • Entity Relationship Diagram • Applies constraints of chosen database • Table structure using syntax • Data types, keys, relationships
  • 7. © DataStax, All Rights Reserved. Data Modeling Stages 7
  • 8. © DataStax, All Rights Reserved. Data Modeling Stages 8
  • 9. © DataStax, All Rights Reserved. Data Modeling Stages 9
  • 11. © DataStax, All Rights Reserved. Scheduling Application Definition What is it? Application to schedule service appointments. Who is it for? Any employee of the service company. What does it do? Sets & retrieves appointments for service. Client/Service detail requests. Provider/Service detail requests. Services delivered/scheduled over time. 11
  • 13. © DataStax, All Rights Reserved. Conceptual Model 13
  • 15. © DataStax, All Rights Reserved. Logical Model 15
  • 17. © DataStax, All Rights Reserved. Desired Queries 17 • Add new client information • Get client info by name or phone • Create appointment for specific date/time, client, service, & service technician • Get all scheduled appointments for specified client name or phone • Get all available times to schedule appointment for specified service & service technician • Get all scheduled appointments for specified service technician
  • 19. © DataStax, All Rights Reserved. Physical Model 19 Add new client information
  • 20. © DataStax, All Rights Reserved. Physical Model 20 Add new client information
  • 21. © DataStax, All Rights Reserved. Physical Model 21 Get client info by name or phone
  • 22. © DataStax, All Rights Reserved. Physical Model 22 Get client info by name or phone
  • 23. © DataStax, All Rights Reserved. Physical Model 23 Create appointment for specific date/time, client, service, & service technician
  • 24. © DataStax, All Rights Reserved. Physical Model 24 Create appointment for specific date/time, client, service, & service technician
  • 25. © DataStax, All Rights Reserved. Physical Model 25 Get all scheduled appointments for specified client name or phone
  • 26. © DataStax, All Rights Reserved. Physical Model 26 Get all scheduled appointments for specified client name or phone
  • 27. © DataStax, All Rights Reserved. Physical Model 27 Get all available times to schedule appointment for specified service & service technician
  • 28. © DataStax, All Rights Reserved. Physical Model 28 Get all available times to schedule appointment for specified service & service technician
  • 29. © DataStax, All Rights Reserved. Physical Model 29 Get all scheduled appointments for specified service technician
  • 30. © DataStax, All Rights Reserved. Physical Model 30 Get all scheduled appointments for specified service technician
  • 31. © DataStax, All Rights Reserved. Physical Model 31 End Product: A complete script to create your entire Data Model in Cassandra
  • 32. Thank You! Questions? Adam Hutson @AdamHutson adam@datascale.io @DataScaleInc