Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Physics of the FILTER operation within SQL_PLANE.
I've just done a little more work based on your test case, checking which rows in the filtering table get hit. Based on these observations, I think Oracle creates a hash table for the results of the FILTERing probe, using the probe "key" as the basis for the hashkey. On each probe, Oracle saves the result in the hash table, so long as there are no hash collisions. If a new probe key collides with an existing probe key, then the result is not saved. I also infer that in your test case, the size of the hash table is 128.
I would guess, but have not yet confirmed, that the size of the hash table is set as the query starts, - but only when running the cost based optimizer, so that Oracle has an estimate of the number of probe keys that need to be stored.
Regards
Jonathan Lewis
http://www.jlcomp.demon.co.uk/faq/ind_faq.html The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/seminar.html Optimising Oracle Seminar - schedule updated May 1st
FILTER operation effectiveness depends on how (in which order) rows are
inserted into driving table. Looks similar to clustering factor in index
range scans ;)
Take a look on simple TESTCASE I have made on 9.2.0.4 Win2000.
As you can see LIO count defers by 17 times (First case 63 LIO, second
1061) depending on order how rows have been inserted.
One more effect, if we reduce row count in filter table (third test), then
Oracle execute filter operation more effective (LIO=43) independing of
inserting order, due to "remembering results of previous probes" probably.
Best regards,
Jurijs
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Jun 29 2004 - 03:41:18 CDT