Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker.

Similar presentations


Presentation on theme: "Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker."— Presentation transcript:

1 Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker

2 Phase 1  Get a working database  Populate database

3 Mall Data base  A Data base for a group of malls  Stored various shops, restaurants and cinemas in the malls  Stores all products that are sold in the Mall  Main user are customers seeking information about where to find a product or a specific shop  Minor support for storing shop renters and mall staff

4 Data Generation(1 st phase)  Goal is 100,000 per table  Tried several data generators  Inheritance problem  There is no hard coded constraint in database that prevents a product from being a video and a processor at the same time  Fix manually  Write scripts to manually distribute products among it’s children tables  Products table grew to 600,000

5 Phase 2  Query Selection  5 queries  3 select  Mall viewer (Mall by name)  GetPlaceByName (Search for shops and restaurants with a given name)  Get Mother Board supported memory and ram

6 Phase 2 cont  2 update queries  PlayNextMovie (Changes a cinema now playing movie to next playing and set next playing with the query parameter)  Add a book (Add a book to the database as an example of adding a poduct)  Run queries and collect statistics  SQL profiler  Client side statistics

7 Phase 3  Optimize queries  Generate new databases (red gate data generator)  It s about size not data correctness  Choose 2 queries  Mall Viewer  GetPlaceByName

8 Performance Enhancement  Mostly from indexes  The application domain was helpful  Select is the most frequent and important operation  Optimizing inserts can only be done by dropping indexes  Not possible because it will severely degrade select

9 Before and after (Time)

10 Before and after (Cost)

11 Size vs. time (Get Place)

12 Size vs. time (Mall Viewer)

13 Over all performance

14 Summary  Speed UP  85.7%  78.3%  Cost improvement  88%  99.6%  Over All Speed up  71.5%


Download ppt "Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker."

Similar presentations


Ads by Google