Re: [Monetdb-developers] [Monetdb-pf-checkins] pathfinder/compiler/algebra physical.c, XQuery_0-22, 1.55, 1.55.2.1

On Wed, Feb 20, 2008 at 03:05:25PM +0000, Jan Rittinger wrote:
AFAIK, kintersect does not guarantee any order at all! (Just recalling from the back of my head; did not check the code, again...) By default, it will scan the left input and look-up into the right input, thus "by coincedence" maintain the order of the left input. However, in case it "thinks" that scanning the right and looking up into the left is more efficient (e.g., in case the is already a hash index on the left head, or the left head is a dense OID column, allowing positional lookup), it might switch the scanning the right and looking-up into the left. We call this "operational optimization" ... In case pathfinder indeed relies on any particular order-preserving kintersect, we should carefully double-check the above, and if necessary consider adding an explicit "left_kintersect" (and/or "right_kintersect") primitive analogously to the left*join and ord_*select primitives ... Stefan
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
participants (1)
-
Stefan Manegold