introduction to mongodb€¦ · case study #1 | blogging site data user-focused analysis...

7
INTRODUCTION TO MONGODB

Upload: others

Post on 01-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

INTRODUCTIONTO MONGODB

Page 2: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

CASE STUDY #1Analyzing Blogging Site Data

Page 3: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

Two Different Sections:● Posts and Users as separate collections

● A single Users collection with posts as embedded documents

Case Study #1 | Blogging Site Data

Page 4: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

Posts and Users as separate collections

Case Study #1 | Blogging Site Data

Page 5: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

Posts and Users as separate collections

Case Study #1 | Blogging Site Data

● Post-focused analysis● Exploration● Success Metrics:

○ Likes○ Dislikes○ Views

● Correlations:○ date_created and success

metrics○ topic and success metrics

Page 6: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

Users collection with posts as embedded documents

Case Study #1 | Blogging Site Data

Page 7: INTRODUCTION TO MONGODB€¦ · Case Study #1 | Blogging Site Data User-focused analysis Exploration Success Metric: # of likes that a user received on at least one post Correlations

Users collection with posts as embedded documents

Case Study #1 | Blogging Site Data

● User-focused analysis● Exploration● Success Metric:

○ # of likes that a user received on at least one post

● Correlations○ date_created for user and

number of likes○ age and number of likes