> From: Mike Naughton
>
> I guess a downside, performance-wise, might be the overhead of creating
> the file in the first place -- some of the more adept programmers on the
> list might suggest something fancier using a user space, maybe?

I think it depends on the size of the original select, Mike.  What if the
original SELECT selects, say, five million records out of a 100 million
record file?  Would you really want to create that million record temporary
file?  Sure, it could be done, but I was thinking more along the lines of a
temporary index, that would contain just a list of record numbers back to
the original file.

Of course, the problem there would be concurrence - records could get
updated, thereby dropping them from or adding them to the list.  But you
could either lock the file, or attach a listener, along the lines of the
logical file listeners IBM already has in place.  But your temporary file
idea certainly makes sense, especially for smaller selections.

Joe



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.