database - What is MYSQL Partitioning? -


I have read the documentation, but I would like to, in my own words, what is it and why it is used is .

  1. Is it primarily used for multiple servers, so does not pull a server?
  2. Then, the portion of the data will be on server 1, and the portion of the data will be on server 2 and server 3 is "Point" for Server 1 or Server 2 ... How does it work?
  3. Why MYSQL documents focus on partition within a single server ... If its purpose is to spread to all servers?

The idea behind the partition is to not use multiple servers, but using multiple tables is a table's ringing If you can divide a table into several tables so you can get old data in one table and new data in another table, then the database can customize those queries where you ask for new data that they In the second table, more than that, you define how the data is divided. Simple examples from

:

  Make the table worker (id INT not tap, Fname VARCHAR (30), lname on VARCHAR (30), DATE No difference '1971 71-01-01', difference difference from the date of rent '99 99-12-31 ', JobCode INT, Store_ID INNT Range by Year (Year) (different)) (Part P. Price less than (1 991), Part P1 Low Thane (1996), Partition P2 Value Low (2001), Partition P3 value less than MAXVALUE);  

allows such speed eg:

  1. Leaving old data through simple:

      Optional Table Employee Drop Part P0;  
  2. The database can speed up a query like this:

      SELECT COUNT (*) employees where '2000 - 01-01 'and' 2000-12-31 'Group by store_id;  

By knowing that all data is stored only on P2 partition.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -