Page 1 of 1

abt sequential file

Posted: Tue May 15, 2007 8:28 am
by 4friends
why sequential file is not used as a look up???

Posted: Tue May 15, 2007 10:02 am
by chulett
Because it doesn't really make any sense to do a lookup directly against sequential media. Load it in a hashed file and then do the lookup.

Posted: Tue May 15, 2007 2:00 pm
by I_Server_Whale
Welcome Aboard ! A sequential file cannot have keys to it and hence a look-up cannot be performed against it.

Re: abt sequential file

Posted: Wed May 16, 2007 12:20 am
by baglasumit21
4friends wrote:why sequential file is not used as a look up???
We use look up as an alternate way to implement joins and use hash file since it uses hash algorithm to look for a match for key columns in the hash file. Sequential file doesnt have key columns. So it wont help you to perform a look-up

Posted: Wed May 16, 2007 12:47 am
by ray.wurlod
You can, of course, use a sequential file for lookups, by identifying the lookup key columns in the metadata and employing an ODBC stage via the ODBC driver for text files.

Just don't expect any speed.

Posted: Wed May 16, 2007 7:23 am
by chulett
Forgot about that option... but perhaps that's for the best. :wink:

Posted: Wed May 16, 2007 3:34 pm
by ray.wurlod
Maube it's the right approach if you're being paid by the hour!
:lol: