database

14
MANHATTAN INTELLIGENCE Group 10 RECIPE DATABASE DESIGN & APPLICATION DEVELOPMENT Group 10

Upload: louise-xiaoyu-yao

Post on 15-Apr-2017

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Database

MANHATTANINTELLIGENCE

Group 10

RECIPE DATABASE DESIGN & APPLICATION DEVELOPMENT

Group 10

Page 2: Database

5 Q & A

12

34

Database Design

User Interface & Demo

Technical Implementation

CONTENT

S

Background & Objective

Page 3: Database

1Background &

Objective

Page 4: Database

Retrieving data more efficient and accurate

Create the new recipe conveniently by themselves

Provides all-round cooking recipes

Nowadays, increasing number of customers get used to search recipe for their daily lunches and dinners by using recipe or food applications through mobile devices.

Based on the booming demands we developed a new recipe application which is a recipe search site with a collection of various types of cuisines all over the world.

Background & Objective

Page 5: Database

2Database

Design

Page 6: Database

E-R Diagram

9 Entities

RecipeComment

UnitNutrition

IngredientFlavor

NutrionDetailIngredientDetail

FlavorDetail

Page 7: Database

3 Technical Implementation

Page 8: Database

Space Estimation

Unit: bytes Size of a row

Now 5-year later

# of rows Total size # of rows Total size

Recipe 272 5 1,360 200,000 54,400,000 Comment 109 25 2,725 1,000,000 109,000,000

Unit 14 4 56 4 56 Nutrition 18 3 54 3 54

Ingredient 18 16 288 160 2,880 Flavor 18 6 108 6 108

NutritionDetail 16 48 768 480 7,680

IngredientDetail 16 50 800 2,000,000 32,000,000

FlavorDetail 16 15 240 600,000 9,600,000 SUM - - 6,399 - 205,010,778

≈6k ≈200M

Page 9: Database

We use DB2 Express-C package for data backup and security concern

• Backup• Transaction logs

Backup

• Everyday online backup• Archive transaction logs• Privilege

Safety Strategy

Page 10: Database

4User Interface

& Demo

Page 11: Database

HomePage

Team10FoodReceipe

Click/ Search for Recipe

Create New RecipeSelect Ingredient √____

√____√____√____

Write Comment

Check Details(Ingredient/ Nutrition)

Page 12: Database

Demo

Time

Page 13: Database

5 Q & A

Page 14: Database

THANKSGroup 10 Caidan Liu, Kanrong Yu, Qianchao Nie, Shaowei Gong, Xiaoyu

Yao, Yi ZhuApril 25, 2016