ORAOCI Lookup or Hash File Look Up

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsuser
Participant
Posts: 12
Joined: Mon Sep 15, 2003 9:11 pm

ORAOCI Lookup or Hash File Look Up

Post by dsuser »

Hi,

I'd like to know if a look up to a ORAOCI stage will be faster or a look up to the Hash File(for about 20,000 records) will be faster with Pre-Load File to Memory option disabled.And Why???

Thanks,
dsuser
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

dsuser

This has been covered a lot. Do a search.
Mamu Kim
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

It depends. Is the reference table residing within the same instance of the source data? How is the table constructed? Would you be using SQL BETWEEN statements to do ranged selects? What is the content of data that you need to reference? A hash file could have 10 rows in it, but 1000 columns of 32K bytes, and that would be VERY inefficient. Likewise, a table lookup returning the same data is very inefficient. Will the lookup be shared across multiple jobs (either instantiated jobs or a common reference lookup).

You can't answer a question like yours without careful framing. It's like asking someone to give an short answer to a question like: Which is better, DB2 or Oracle?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Here's some posts that may help you decide:

viewtopic.php?t=85569

viewtopic.php?t=85364

viewtopic.php?t=85822
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply