Create an Account
username: password:
 
  MemeStreams Logo

MySQL :: MySQL 5.1 Reference Manual :: 18.1 Overview of Partitioning in MySQL

search

Lost
Picture of Lost
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Lost's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
MySQL :: MySQL 5.1 Reference Manual :: 18.1 Overview of Partitioning in MySQL
Topic: Technology 11:15 pm EST, Dec  4, 2008

Partitioning takes this notion a step further, by allowing you to distribute portions of individual tables across a filesystem according to rules which you can set largely as needed. In effect, different portions of a table are stored as separate tables in different locations. The user-selected rule by which the division of data is accomplished is known as a partitioning function, which in MySQL can be the modulus, simple matching against a set of ranges or value lists, an internal hashing function, or a linear hashing function. The function is selected according to the partitioning type specified by the user, and takes as its parameter the value of a user-supplied expression. This expression can be either an integer column value, or a function acting on one or more column values and returning an integer. The value of this expression is passed to the partitioning function, which returns an integer value representing the number of the partition in which that particular record should be stored. This function must be non-constant and non-random. It may not contain any queries, but may use an SQL expression that is valid in MySQL, as long as that expression returns either NULL or an integer intval such that

MySQL gets table partitioning.

MySQL :: MySQL 5.1 Reference Manual :: 18.1 Overview of Partitioning in MySQL



 
 
Powered By Industrial Memetics
RSS2.0