One takes 3 seconds the other takes 30 seconds. Why?

The following 2 queries have only "OR 0=1" different. One has it and the other does not. Yet the one with it runs in 30 seconds and the one without it runs in 3. The network, execution, i/o and sort are also the same. Why is this happening:
--Take 30 seconds
SELECT *
FROM TESTSCHEMA.TESTTABLE
WHERE TESTCOL='49W7DWCA0W0Z21'
OR TESTCOL='9UQ3GXCA01VFJB' OR TESTCOL='C5B51A15D1304F' OR TESTCOL='8XR2JWCA08GSS8' OR TESTCOL='4PTD8QCA06D3PJ'
OR TESTCOL='26XEOVCA036F6O' OR TESTCOL='12KKGYCA059XEE' OR TESTCOL='8IGMKXCA0V358H' OR TESTCOL='9OG4KVCA09QUSH'
OR TESTCOL='8KILJUCA0UVNFQ' OR TESTCOL='06O1UUCA018KUF' OR TESTCOL='41BG4XCA0C8XD9' OR TESTCOL='97D4UUCA0DOXCE'
OR TESTCOL='02YDTWCA0Z95RB' OR TESTCOL='3NG4AYCA0M6TMO' OR TESTCOL='6PZ83XCA04DXNC' OR TESTCOL='BEF4B81FFC3B4D'
OR TESTCOL='2E032A0B5A9F4C' OR TESTCOL='8D701440E7B446' OR TESTCOL='1JCPWWCA0951UC' OR TESTCOL='8HCCGYCA08UC9A'
OR TESTCOL='3CAFD292736B4F' OR TESTCOL='7KJXUWCA0R43IL' OR TESTCOL='4TKCASCA09ISF1' OR TESTCOL='034M1WCA0S5O1X'
OR 0=1
--Take 3 seconds
SELECT *
FROM TESTSCHEMA.TESTTABLE
WHERE TESTCOL='49W7DWCA0W0Z21'
OR TESTCOL='9UQ3GXCA01VFJB' OR TESTCOL='C5B51A15D1304F' OR TESTCOL='8XR2JWCA08GSS8' OR TESTCOL='4PTD8QCA06D3PJ'
OR TESTCOL='26XEOVCA036F6O' OR TESTCOL='12KKGYCA059XEE' OR TESTCOL='8IGMKXCA0V358H' OR TESTCOL='9OG4KVCA09QUSH'
OR TESTCOL='8KILJUCA0UVNFQ' OR TESTCOL='06O1UUCA018KUF' OR TESTCOL='41BG4XCA0C8XD9' OR TESTCOL='97D4UUCA0DOXCE'
OR TESTCOL='02YDTWCA0Z95RB' OR TESTCOL='3NG4AYCA0M6TMO' OR TESTCOL='6PZ83XCA04DXNC' OR TESTCOL='BEF4B81FFC3B4D'
OR TESTCOL='2E032A0B5A9F4C' OR TESTCOL='8D701440E7B446' OR TESTCOL='1JCPWWCA0951UC' OR TESTCOL='8HCCGYCA08UC9A'
OR TESTCOL='3CAFD292736B4F' OR TESTCOL='7KJXUWCA0R43IL' OR TESTCOL='4TKCASCA09ISF1' OR TESTCOL='034M1WCA0S5O1X'

Per Toad and Embarcadero DBArtisan, yes:
OPERATION                         OBJECT NAME          ROWS     BYTES     COST
SELECT STATEMENT Optimizer Mode=ALL_ROWS                    28           32.0352755426037
INLIST ITERATOR
TABLE ACCESS BY INDEX ROWID           TESTSCHEMA.TESTTABLE     28      67 K     32.0352755426037
INDEX RANGE SCAN                     TESTSCHEMA.PK_TESTCOL     28          3.00250168633582
SELECT STATEMENT Optimizer Mode=ALL_ROWS                    28           32.0352755426037
INLIST ITERATOR
TABLE ACCESS BY INDEX ROWID           TESTSCHEMA.TESTTABLE     28      67 K     32.0352755426037
INDEX RANGE SCAN                     TESTSCHEMA.PK_TESTCOL     28          3.00250168633582

Similar Messages

  • Script works on one site, not the other... why?

    Could someone tell me why this prototype-based lightbox seems
    to work on one
    site but not on the other?
    I literally took the exact same .js & css files, copied
    them over from one
    site to the other, but it's only partially working on the new
    site.
    http://www.vilverset.com/sample.html
    And the original fully-functional one :
    http://www.roxanacampagiorni.com/
    Been troubleshooting this one for days, and I'm stumped.
    Script wants
    nothing to do with lightboxing HTML files on the new site.
    Only straight
    JPGs.

    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(Mark A. Boyd)
    >
    >>Strange. I don't think I've ever seen these headers
    before:
    >>
    >>
    http://www.vilverset.com/tn_posters.html
    >>POST /tn_posters.html HTTP/1.1
    >>HTTP/1.x 405 Method Not Allowed
    >>Allow: GET, HEAD, POST, PUT, DELETE, CONNECT,
    OPTIONS, PATCH, PROPFIND,
    >>PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    >>
    >>I suspect a server configuration - or version.
    >
    > I consider it a script problem. Why does it send a POST
    request instead
    > of GET? IMHO the server's response is correct, because
    it doesn't make
    > much sense to POST something to a static .html page.
    That's what I told a helper friend of mine, but he told me
    the POST is done
    by the server, not the JS files. That's why, according to
    him, he couldn't
    tell me what code to change in the .js files.
    But here they are, if you would be so kind as to tell me WHAT
    to replace
    with WHAT so the call is made properly. :-)
    http://www.vilverset.com/scripts/control.modal.2.2.3.js
    http://www.vilverset.com/scripts/effects.js
    http://www.vilverset.com/scripts/prototype.js
    Those are the 3 files needed for the script.
    Should I be banging on Dreamhost's door to fix something, or
    not? Because
    the exact same 3 files will render an HTML page just fine
    over on
    roxanacampagiorni.com.
    Which is the guilty party? The script, or the server config?

  • Gaps in one album; not the other...why?

    I bought the Plagues album by The Devil Wears Prada and the album has 2 second gaps and its obvious that it shouldn't. I bought their earlier album, Dear Love: A beautiful discord, and all the songs blend into each other without any 2 second pause. Any idea why?
    I've searched throughout all the forum and haven't found an answer that fixes my problem; if their even is one. :P
    Message was edited by: Squffies27

    The item might be labelled incorrectly! The only thing you can do is to report it to Apple. How to do it? You have two ways:
    - After receiving the receipt on your mail account, just click "Report Problem". Then you'll be redirected to iTunes Store and you'll have to explain that situation.
    - You can also Account on the iTunes Store's main page, type your password and click "Report Problem" after the correspondent song or album!
    If this small gap is in the beggining of the song, you can configurate it to start playing that song at a scepific time. Click Get Info > Option.
    Hope it helps!

  • How to read two files (one is updating every second, the other is constant) simoltaneously

    Dear All,
    I will appreciate if somebody help me.
    I want to read two files, one is temperature wich is updating every second, and the other is hysteresis energy which has specific rows and is constant.
    I got a program in discussion forum which read a file as it is updating. I checked this program in my case and it works.
    Then I added reading hysteresis energy file to the existing file. But while i am running the program, the hysteresis energy file is read with all rows.
    But the aim is that everytime which temperature updates, I need to read just one row of the hysteresis energy file.
    so, in this way in every second i have a new temperature data and one row of the other file.
    I tried to used "for loop" inside the program, but it did not work, becuase reading temperature will be stopped untill for loop ends.
    I attached the program.
    Could somebody help me how to read just one row of hysteresis energy file everytime temperature updates?
    Solved!
    Go to Solution.
    Attachments:
    Readfiles.vi ‏23 KB

    I do not understand relationship between your two files.
    You have another VI or app that is writing data to both files and when new temperature data added you wish just to read the new data and then read one new line of the hysteresis file?????
    But is one is constant, why do you need to keep reading it?
    Anyway…
    The “Read From Spreadsheet File.vi” preformed an Open and a Close for each time it is called (if you will open the VI up and drill down and you will see). So that resets the file pointer back to the beginning and there for will read in the whole file from the first to the last each time if you do not set the start of read offset or number of rows.
    Now the Read from Binary File does not reset the file pointer and leaves the file pointer just past the last byte read so it will start with any new bytes automaicly only giving you the new data.
    I do not think you need to do the math with the Previous EOF=0 and the File size to get what I think you are trying to do.
    Plus use shift reg for the Data string instead of local var
    Set the mechinacl action of the stop botton to Latched
    So you do not need to init the two controls
    Also, I do not get the End of file encountered error (4) from the Read from Binary file if I attempt to read past. It just returns and empty string.
    Omar
    Attachments:
    Readfiles.vi ‏22 KB

  • I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    You need to setup different Receive At addresses for iMessage.
    If you don't want the same pics on each, turn off PhotoStream.
    User Guide

  • HT2731 I have 2 iPhone 4's in my name.  How do I stop from sharing my photos from one phone to the other.  When I take a photo it shows up on my husbands phone and vise versa. We have our iCloud turned off

    I have 2 iPhone 4's in my name.  How do I stop from sharing my photos from one phone to the other.  When I take a photo it shows up on my husbands phone and vise versa. We have our iCloud turned off in both phones.

    well i think one of you should change yalls name on the iphone its may not be the icloud but the names

  • HT4279 I have a Macbook Pro (late 2012) and I would like to connect it to 2 screens simultaneously (1 screen is a TV and can only take HDMI, the other is a larger computer screen and has both VGA and HDMI connections). How can I do this?

    I have a Macbook Pro (late 2012) and I would like to connect it to 2 screens simultaneously (1 screen is a TV and can only take HDMI, the other is a larger computer screen and has both VGA and HDMI connections). How can I do this?

    The article you cited refers to The Mac Pro, a 50lb silver tower -- not a notebook computer.
    Everymac.com says:
    2nd Display Support:
    Dual/Mirroring*
    2nd Max. Resolution:
    2560x1600 (x2*)
    Details:
    *This model supports a simultaneous maximum resolution up to 2560x1600 on two external displays via Thunderbolt. Alternately, it can support a single display up to 2560x1600 via Thunderbolt and a single display up to 1920x1200 via HDMI. Although it can theoretically power all three external displays, as confirmed by a helpful reader, it runs too hot with three displays connected.
    Also see: How many external displays can the Retina Display MacBook Pro models support? What is the maximum supported resolution of each? Are adapters required?
    When using other than ThunderBolt displays, the ThunderBolt port is directly compatible with Mini DisplayPort, and can be forced into compatibility (with Single-Link DVI or HDMI up to 1920 wide) with a simple adapter.
    To adapt to wider displays, an ACTIVE Dual-Link adapter is needed, about US$100.

  • I tried two dvd players,one freezes still,the other ok,Why?

    I made a dvd with photshop/premiere 7.All still pictures with some music.I tried the dvd on two sony players.One works great.The other will freeze frame at same still.Why?

    Ok... some thoughts
    Since you ask in the Encore forum, I will presume you created the DVD with Encore... which does, by design, create "legal" discs that are "supposed" to play
    But... as I said, no player is required to work with a burned disc
    Go to http://www.imgburn.com/ and scroll down to the link for the FREE version, now at 2.5
    Tell Encore to create an ISO on your hard drive and use Imgburn to burn to disk... at the SLOWEST setting possible
    As far as the 2 Sony models... I can only GUESS that the newer model has more built-in DRM "crapware" that is getting in the way of playing a burned disc

  • I want to know what is the portion that the others take up space

    I want to know what is the portion that the others take up space on the Ipod touch when you connect to Itunes. Just wondering what that is

    Other can be Album Artwork, Notes, Contacts, Firmware etc. or in the case of iPods that can be enabled for disk use Other can included files that are on there if you are using the iPod as a removable storage device.

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

  • I'm downloading a movie to each of my kids new ipads.  it says that it's downloading, but the completion % has shown the same % since it began 2 hours ago.  is this normal? one shows 94%, the other 24%.  how do I know if it's progressing?

    I'm downloading a movie to each of my kids new ipads.  it says that it's downloading, but the completion % has shown the same % since it began 2 hours ago.  is this normal? one shows 94%, the other 24%.  how do I know if it's progressing?

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • I have 2 iPod touchs and 1 computer. It will reconize one but not the other. How do I get it to sync music on both

    I have 2 older iPod touches and 1 computer. It will reconize one but not the other. How do I sync music on both?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • How do I link multiple Spry Accordions so that when one is opened the other ones close?

    I have created a web site using six Spy Accordions as the menu. I know this is not what they are usually used for but the animation as they open was just right for the site. I've gotten them working just as perfectly as I could want, with one exception. Because there are six independent accordions they all open and close independently. What I want is a way to link them so that when you open up one it closes the others so only one is open at a time. I've looked and looked for anyone anywhere talking about this and I've found nothing. I'm not even sure if it's possible. I know that Spry is being fazed out and jQuary is basically replacing it. I have considered heading in that direction but I've put so much time into this and it works so perfectly except that one thing. Here's the website for referance: http://journeywilderness.com/
    Please... if anyone has any ideas about how to make only one Accordion open at a time please please help me. I'm frustrated beyond words at this.
    Thank you.

    You're trying to use Spry Accordions for something they were never intended to do.   Why don't you switch to a more appropriate jQuery Mega Menu?
    http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/examples/
    In case you missed the announcement, Spry is dead.  Adobe abandoned it late last year because it has outlived its usefulness.
    http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
    Nancy O.

Maybe you are looking for

  • Iphone deletes sent messages on my mac

    Hi guys - I have searched on this subject but to no avail. When I sync my iPhone with my mac, it deletes all my messages from my Sent Folder on both my Mac and .mac and only keeps the ones on my iPhone (approx 34 messages) This means if I want to sea

  • Panasonic KV-S2026C scanning problem in Acrobat Pro 9

    With the most recent update, the Panasonic KV-S2026C scanner does not support memory mode. Please see the workaround listed for the Kodiak i1220 at: http://kb2.adobe.com/cps/404/kb404291.html The issue arises when scanning, where the scanner may scan

  • Can't get my libraries to combine!

    Help...I have no idea what to do!! My computer crashed (all my music was backed up) and I had it repaired. I had about 300 songs on my ipod, and when I got my computer back and plugged the ipod in, I began to download more music. I downloaded about 1

  • ERROR IN ADOBE READER INTALLATION

    error in instalation adobe reader.i need you!!!!!! that the question: error B708EB72-AA82-3EB7-8BB0-D845BA35C93D.HRESULT:0X8007054F. Thank you!!

  • Need Enhancement which is triggered after material quantity creation

    Hi guys, Iam in need of enhancements or exits which would be triggered after creating quantity for my material. Kindly enlighten me on this issue . I need a place to right a code which will be triggered when i create a material quantity . Regards, Si