A website which is related to shopping e-commerce. The website having huge number of data to be stored in DB. so far the products table in db is having nearly 18K records with 20 fields. i have created the db structure as follows
- brands
- products
- shopslist
- shopping_details
The website is having 100+ pages everything related to products and brands.
eg.pages are
www.example.com/nokia-mobile-phones.php , www.example.com/samsung-mobile-phones.php
www.example.com/samsung-galaxy-s3-price.php,www.example.com/android-mobile-phones.php
i have written the queries to fetch the product details corresponding to the pages dynamically. This makes my website some what slower in grabbing the data from db ans displaying.
Currently website is having nearly 14k to 15k visits per day. suddenly the website becomes very slow and stops responding for more than 10hrs a day. The technical people on hosting side said the problem is due to more number of requests in a single day and your db occupies 75% of the memory , optimize your site and db for better results . The website is hosted in VPS with better configurations.
Kindly give a solutions for optimizing a website , queries and db.