![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've got non-partitioned table which I have to move to partitioned table. I've decided to move it to hash partitioned table with 16 partitions. It is a good practise to create dedicated tablespace for each partition with one datafile? |
#3
| |||
| |||
|
|
I've got non-partitioned table which I have to move to partitioned table. I've decided to move it to hash partitioned table with 16 partitions. It is a good practice to create dedicated tablespace for each partition with one datafile? |
#4
| |||
| |||
|
|
If you assign each partition to its own tablespace probably should be based on expected partition size and your space management policies and backup/restore plan. If each partition is only a couple of gigabytes and you use 32G files then assigning each partition to its own tablespace seems overkill. On the other hand if each is around 20g and you like to keep all your tablespaces close to the same size for restore of any tablespace takes about the same amount of time as restoring any other tablespace then you may want to split them up. You may determine that assigning two to four partitions to the same tablespace makes the most sense. It is a matter of preference, not best practice. |
#5
| |||
| |||
|
|
On Thu, 16 Dec 2010 03:55:40 -0800, Michał Jabłoński wrote: I've got non-partitioned table which I have to move to partitioned table. I've decided to move it to hash partitioned table with 16 partitions. It is a good practice to create dedicated tablespace for each partition with one datafile? What would you like to achieve by splitting table into different tablespaces, as opposed to splitting it into a single tablespace? --http://mgogala.byethost5.com |
#6
| |||
| |||
|
|
On 16 Gru, 21:05, Mladen Gogala <n... (AT) email (DOT) here.invalid> wrote: On Thu, 16 Dec 2010 03:55:40 -0800, Michał Jabłoński wrote: I've got non-partitioned table which I have to move to partitioned table. I've decided to move it to hash partitioned table with 16 partitions. It is a good practice to create dedicated tablespace for each partition with one datafile? What would you like to achieve by splitting table into different tablespaces, as opposed to splitting it into a single tablespace? --http://mgogala.byethost5.com I think about performance, time of execution sql on this table. In this case it is better to create more tablespaces with one datafile or less with one or more datafiles? Or it doesn't matter? |
#7
| |||
| |||
|
|
I think about performance, time of execution sql on this table. In this case it is better to create more tablespaces with one datafile or less with one or more datafiles? Or it doesn't matter? |
#8
| |||
| |||
|
|
queue and FIFO are the most frequent examples). The whole philosophy of "separating data to different disks" is as obsolete as the terminator model 1. |
#9
| |||||
| |||||
|
|
I've got non-partitioned table which I have to move to partitioned table. I've decided to move it to hash partitioned table with 16 partitions. It is a good practise to create dedicated tablespace for each partition with one datafile? |
|
Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | |
|
0 | SELECT STATEMENT | | 1 | 87 | 3 (0)| 00:00:01 | | | 1 | PARTITION HASH SINGLE | | 1 | 87 | 3 (0)| 00:00:01 | 2 | 2 | 2 | TABLE ACCESS BY LOCAL INDEX ROWID| EMP_P | 1 | 87 | 3 (0)| 00:00:01 | 2 | 2 | * 3 | INDEX RANGE SCAN | EMP_P_EMPNO | 1 | 2 (0)| 00:00:01 | 2 | 2 | ------------------------------------------------------------------------------------------------------------------ |
|
Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | |
|
0 | SELECT STATEMENT | | 1 | 87 | 0 (0)| 00:00:01 | | | * 1 | FILTER | | | | | | | 2 | TABLE ACCESS BY GLOBAL INDEX ROWID| EMP_P | 1 | 87 | 0 (0)| 00:00:01 | 3 | 3 | * 3 | INDEX RANGE SCAN | EMP_P_EMPNO | 1 | 0 (0)| 00:00:01 | | | ------------------------------------------------------------------------------------------------------------------- |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |