Search Postgresql Archives

Partitioning - when is it too many tables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm working on a database that will (at current load) add 100 million
records per day to a database, and needs to keep around 6 months of data
online.  Of course, we don't want the loads to be running all day while
queries are going on.

Using COPY with indexes active runs great with an empty database, then drops
precipitously as the index size grows.  It looks like I should be able to
hit the numbers if I insert the data using COPY with no indexes, then add
the indexes.  I'm looking at partitioning with one table per day.  So, we'd
be looking at about 180 tables with 100 million rows each.  Searches would
typically be within a single day, although they could span multiple days.

This keeps the indexes a more or less reasonable size, and allows quick
deleting of the old data.  Is there any problem with 180 child tables?  How
many would be too many (e.g. if I did one table per 6 hours?)

Thanks

Wes




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux