Suppose I have 1 million data in my database. what will be the most optimized criteria to get fast开发者_如何学Cer results??
Criteria 1:
Single database - Many tables
Criteria 2:
Multiple database - Multiple tables
Criteria 3:
Single database - Single table
and what are the other factors which I need to take care off??
Thanks
Mathew
One millions rows isn't all that much and then, as always, it depends.
- What kind of queries are you going to run?
- Ratio of select and inserts.
- How big are the rows?
If you still think you need more than a vanilla MySQL table then you could take a look at MySQL Cluster.
The most relevant factors are:
- The nature of data
- The information you are going to retrieve
When ever we design the database, consider the following points
- How much data will you be adding and storing in the database
- IS there any reports that you need to genarate and stored
- Try to create database that will be very easy for you to write the Queries
- Since there are millions of records, make sure all the tables are properly indexed and maintain the proper relationship between the tables.
精彩评论