MySQL Forums
Forum List  »  Performance

Re: RAM requirements- new server
Posted by: Rick James
Date: April 03, 2009 10:06AM

There is virtually no reason to split up a large table (by rows). It may feel like you are gaining some kind of efficiency, but you are just trading off some index work vs work to pick the table.

The one big use in PARTITION is to facilitate purging old data. This is where you break up the data by, say, days. Then, every night, you drop the oldest partition and create a new one.

That was "horizontal partitioning". Vertical partitioning is sometimes useful for a different reason...

Simple example: Images. Each row has a lot of meta info about the image, plus a BLOB for the image. Let's say you have some complex queries that gather statistics about the images (but don't need to touch the blobs). Such queries would be stumbling over the blobs. Performance enhancement: Split the table in two -- one for the meta info (much narrower, more easily cachable, etc), and one for the blobs. The latter would be reached into much less frequently (and probably via a JOIN), when you need to display an image(s).

Options: ReplyQuote


Subject
Views
Written By
Posted
12830
A B
April 02, 2009 12:15AM
3845
April 02, 2009 01:17AM
3219
A B
April 02, 2009 03:27PM
2737
April 02, 2009 09:02PM
2505
A B
April 03, 2009 12:54AM
Re: RAM requirements- new server
2510
April 03, 2009 10:06AM
2438
A B
April 05, 2009 09:49PM
2464
April 07, 2009 08:18AM
2398
A B
April 08, 2009 05:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.