![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, what's the effect of primary key field size on performance, as a rule of thumb? Let's say that NUMBER(10) would probably be suffient size for a primary key field. What's the order of magnitude of performance degradation if NUMBER = NUMBER(38) is used instead? Of course, too little information to be answered precisely, but can the difference be considerable? How does Oracle store NUMBERs internally - does it store NUMBER(9) in 32 bits and NUMBER(10) in 40 bits, NUMBER(10) in 64 bits or how? |
#3
| |||
| |||
|
|
Very good question, the difference is negligible the indexing leaf 'jumps' to the appropriate index. Boils down to a waste of space & how fast your disk spindles are. |
#4
| |||
| |||
|
|
Very good question, the difference is negligible the indexing leaf 'jumps' to the appropriate index. Boils down to a waste of space & how fast your disk spindles are. What would you say about a "usual" database server with "usual" disks and configuration (annoyingly vague, sorry - say for example some basic Sun Fire UltraSparc box?) - is it fair enough to say that the performance difference is probably negligible? |
My original answer is based on
#5
| |||
| |||
|
|
How does Oracle store NUMBERs internally - does it store NUMBER(9) in 32 bits and NUMBER(10) in 40 bits, NUMBER(10) in 64 bits or how? |
![]() |
| Thread Tools | |
| Display Modes | |
| |