Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimal size for Database partitions

I am creating a very simple, very large Postgresql database. The database will have around 10 billion rows, which means I am looking at partitioning it into several tables. However, I can't find any information on how many partitions we should break it into.

I don't know what type of queries to expect as of yet, so it won't be possible to come up with a perfect partitioning scheme, but are there any rules of thumb for partition size?

Cheers,

Adrian.

like image 526
Adrian Mouat Avatar asked May 21 '10 10:05

Adrian Mouat


1 Answers

This post by Tom Lane suggested that the number of partitions isn't currently designed to scale past a few dozen partitions. The size of the partitions themselves shouldn't effect performance anymore than splitting it up otherwise.

like image 173
rfusca Avatar answered Sep 23 '22 19:09

rfusca