If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > table with parttions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 05:35
kfir kfir is offline
Registered User
 
Join Date: Mar 2004
Posts: 13
Arrow table with parttions

Is it possible to build table with patition like in oracle in mysql database?
how I can do it?

thanks
Reply With Quote
  #2 (permalink)  
Old 05-19-04, 17:32
ServerMetrics ServerMetrics is offline
Registered User
 
Join Date: May 2004
Posts: 45
kfir,

Although you can't partition a table based on column values, you might look into the RAID syntax of the CREATE TABLE statement. It's primarily used for manually striping the data across multiple files, instead of placing all data instead of a single file. Sort of table-level round-robin partitioning/striping...

Another option I use is to physically partition the table based on a primary key. I've broken up a single table into ten separate tables that have the same schema. When an incoming sql request comes in the integer primary key value used in the sql statement is evaluated using modulus. If the remainder of the modulus of 10 for example is 4, go to table 4 for the data.
__________________
Keith Brownlow
ServerMetrics DB Monitoring (www.servermetrics.com)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On