rob@xxxxxxxxx wrote:
However, if I add this "standard" logical
IPROD 25A K IPROD Against that same physical file then you will see the same times.

So, why not just have the UNIQUE key on the physical?
My response to this would be to put the primary key on the physical file where it belongs.

And I'm not sure why this causes such a change. In fact, this is a real problem as far as I'm concerned. It's one of the few places where a DDL-defined file seriously underperforms a DDS-defined file. Even creating a non-unique index using CREATE INDEX still causes the very nasty 7-to-1 perform decrease.

It seems that the logic that allows a physical file to be keyed is much faster than a separate index object (i.e. logical file), and that SQL always uses a separate index object. That's a painful reality. I normally recommend DDL files over DDS files because up until now there was no reason not to. However, it seems that you're stuck with that performance hit in DDL.

Ouch. Score a big one for DDS.


This thread ...


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

This mailing list archive is Copyright 1997-2019 by 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].