Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Need Help Restructuring Tables for Fast Data Retrieval (2 replies)

$
0
0
I have below DB structure in MSSQL for a small application which follow relational approach. Data retrieval (for Hostels) will need several Join so looking for suggestions, may be Key-Value approach where data retrieval will be fast. Please advise.

Hostels
------------
HostelId,
Name,
Address,
CategotyId,
SubCategoryId,
FoodCategoryId,
LandLordId

Data:
1 H1 Address1 1 1 2 20
2 H2 Address2 1 2 2 21
3 H3 Address3 2 2 1 17

Category
----------
CategoryId,
CategoryName

Data:
1 Hostels,
2 Paying Guests

SubCategory
------------
SubCategoryId,
SubCategoryName

Data:
1 Gents
2 Ladies

FoodCategory
--------------
FoodCategoryId,
CategoryName


Data:
1 Vegeterian
2 Non-Vegeterian

Amenities
----------
AmenityId,
AmenityName

Data:
1 Breakfast
2 Lunch
3 Dinner
4 Internet
5 Laundery

HostelAmenities
---------------
Id,
HostelId,
AmenityId

Data:
1 1 1
2 1 2
3 1 3
4 2 1
5 2 2
6 2 4

Viewing all articles
Browse latest Browse all 1957

Trending Articles