Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker
Data base project Learn How to work with relatively big database sizes Learn how to optimize queries
1 st Phase Get a working database Populate database
Mall Data base Mall Products Places(shops, restaurants, Cinema) Customer Oriented
Database Engine Oracle SQL Server 2005 SQL Server 2008
Data Generation(1 st phase) 100,000 per table Inheritance problem Fix manually Products table grew to 600,000
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
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
Phase 2 statistics Get SQL server CPU, Cache Network Statistics Use SQL profiler Snap shots SQL Management studio for client side statistics and execution plan
Phase 3 Optimize queries Generate new databases It s about size not data correctness Choose 2 queries Mall Viewer GetPlaceByName
Performance Enhancement Mostly from indexes The application domain was helpful Select is the most frequent and important operation Insert book was re written to be more efficient Cost is mostly due to clustered index update
Before and after (Time)
Before and after (Cost)
Size vs. time (Get Place)
Size vs. time (Mall Viewer)
Over all performance
Summary Speed UP 85.7% 78.3% Cost improvement 88% 99.6% Over All Speed up 71.5%