Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can blob be compared?

Re: Can blob be compared?

From: Simon Hall <Simon.Hall_at_logicacmg.com>
Date: Tue, 08 Apr 2003 10:51:07 +0100
Message-ID: <3E929B8B.DF9FAAE7@logicacmg.com>


ctcgag_at_hotmail.com wrote:
>
> Simon Hall <Simon.Hall_at_logicacmg.com> wrote:
> >
> > Just a thought - when you create (or change) the blob create a checksum.
> > Then when you want to compare blobs, compare the length and the checksum
> > instead. Only if both match do you then need to compare the blobs byte
> > for byte.
>
> Would it be possible to do this in a single query? I.E, does the where
> logic of a query apply short-circuiting logic, and if so is the order
> of evaluation controllable (or even predictable)?
>

Not directly as the order of evaluation is up to the optimiser (although there may be hints that stop this, anyone?). It should be possible to write a function to hard wire the logic and use that in the where clause though.

Simon Received on Tue Apr 08 2003 - 04:51:07 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US