preview

Importance Of Erformance Tuning And Partitioning

Decent Essays

erformance tuning and partitioning go hand in hand, in that partitioning is one you can take to tune performance from a database level, so I will start out with explaining tuning and then go into detail about partitioning.

Performance tuning can take place from a DBA perspective, at the full database level, or from a Developer perspective, on the level of individual packages/procedures/functions and SQL queries. Before initiating performance tuning, you need to know where your performance bottlenecks are. There are a number of ways a DBA can determine where the bottlenecks are, including AWR reports, which can show the DBA what areas show the highest wait times. Once the specific SQL statements or PL/SQL code has been targeted, we can …show more content…

Once a table is partitioned, it is easier and faster to access the data in the table, because a query can access just one or a group of partitions on the table, rather than accessing all of the data in the parent table. You can even specify a partition to use in your query. Queries can also work in parallel on the table, running through multiple partitions at once, which is especially helpful if you find you can't avoid a full table scan. So, even if your partitions aren't set up logically to your query, there is a performance improvement to partitioning. There are several options for the type of partitioning you can do. One common method is to partition by a range of data, for instance a date range. This is helpful if your table has a lot of historical data, and only the newest data is normally accessed or updated, rather than accessing ALL of the historical data, you can access just the latest data. It's possible, on the other hand, that your table is usually accessed by a column with distinct values, such as a department id, in which case it might be better to use list partitioning, or you could have a composite partition, such as a range-list partition, such as organizing the partitions by department id and a date. There is a drawback to partitioning in that you have to specify each of the partitions. If you

Get Access