What is table partitioning?

P Sharma picture P Sharma · Nov 30, 2009 · Viewed 17.8k times · Source

In which case we should use table partitioning?

Answer

Philip Schlump picture Philip Schlump · Nov 30, 2009

An example may help.

We collected data on a daily basis from a set of 124 grocery stores. Each days data was completely distinct from every other days. We partitioned the data on the date. This allowed us to have faster searches because oracle can use partitioned indexes and quickly eliminate all of the non-relevant days. This also allows for much easier backup operations because you can work in just the new partitions. Also after 5 years of data we needed to get rid of an entire days data. You can "drop" or eliminate an entire partition at a time instead of deleting rows. So getting rid of old data was a snap.

So... They are good for large sets of data and very good for improving performance in some cases.