Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Performance (CPU) issue: translating binary data (stored as raw) into friendly types
Environment: Two identically configured systems. Oracle 9.2, Debian
(woody), 1G RAM, 3x72G SCSI drives, two processors (SMP supported by
OS).
Problem: I collect binary data in RAW(1024) records at the rate of approximately 100M per month. Every two weeks, I decode this data from the storage server to the analysis server. This process currently takes approximately 1 hour per million rows.
My Solution: One enormous query is run from SQL using a dblink. It uses eight CASE statements and calls two PL/SQL functions about 30 times per record. The PL/SQL functions are optimized versions of RAW_TO_DEC and RAW_TO_FLOAT. One processor is consistently maxed out at 99% usage. The other is idle. I/O is not an issue.
Thoughts:
Thanks for any help.