Alternate for NOT LIKE....

I am using NOT LIKE in sql query....it is running gud in dev instance,But in prod instance it is causing performance issue.
can any one pls suggest alternate for NOT LIKE.
But in dev n prod having same data.
Thanks,
Sai

Hi Saichand,
well, actually what do you expect? ;)
You ask the DB to filter out specific lines and this takes time.
What worries me is the fact that it performs fine on the development environment, but runs slow on the production environment. Did you find out what the reason for this is? Is the prod system loaded too heavily?
There are many alternatives for "NOT LIKE". Within SQL and even outside of SQL. You can do the filtering in the final application even. Would not recommend this, but sometimes it's faster to just stream the data to the final application and to the processing there (if the processing takes lot of CPU and your DB is anyway loaded already too much).
I'd try to find out why the dev is faster than the prod env. Normally it should be the way round ;)
regards,
David.

Similar Messages

  • Code for "not like"

    Hi,
    What is the code for "Not Like" in Oracle? For Example, I want to find out records that does not contain the charactor "RT".
    Thanks.
    Jun

    select column_name from table_name
    where column_name not like '%RT%';
    Hope this solves your problem.

  • Alternate for NOT IN function

    NOT IN always takes long time to complete the process. is there any alternate ?
    Thanks
    Raj

    Depending on your data an IN query can be faster as well. Create the list using a sub-query to perform a minus query. Such as
    Select Distinct State From Companies
    Minus
    Select Distinct State From Companies where State in ('GA', 'SC', 'TN', 'NC', 'FL', 'AL')This will check all Companies not in GA, SC, TN, NC, FL and AL. It makes the list by getting all and then removing the ones you don't want listed. Give it a try it has reduced quite a few run times for me in the past. I avoid NOT IN like the plague because I work on fairly large systems and the performance is horrible.

  • Alternate Layouts not like InDesign

    I am trying to use the alternate layout feature in Muse but it is not working like it does in InDesign. Creating blank pages doesn't really help much and not linking the text makes for double work.
    Are there any plans for the future to change this feature to be more like InDesign?

    I know it does not serve the same purpose. I just think it would be better if there were a choice to include the content. It is a lot easier to re-arrange then to start from scratch or cut and paste.
    More important - linking the text so that a change can be updated in all layouts without re-entering. Also, adding photos could be automatic across layouts - again if you want to.

  • HT3702 I have never ordered anything. Everything in this list.  Press to edit. To purchase anything from this game.  Answer "No" for the transfer of the game.  It has cost me a lot of money.  I did not like it and would not pay this amount. For games that

    I have never ordered anything. Everything in this list.
    Press to edit. To purchase anything from this game.
    Answer "No" for the transfer of the game.
    It has cost me a lot of money.
    I did not like it and would not pay this amount. For games that are too expensive.
    Billed To:
    [email protected]
    preethep notate
    Bangkok
    Bangkok 10400
    THA
    Order Number: MHBG76LW0Z
    Receipt Date: 22/05/12
    Order Total: $49.99
    Billed To: American Express .... 7009
    Item
    Developer
    Type
    Unit Price
    Real Football 2012, Suitcase full of coins
    Report a Problem
    Gameloft
    In App Purchase
    $49.99
    Order Total:
    $49.99

    This is a user to user forum. Apple is not here. Apple does not read here. Apple does not post comments or answers here.
    Use the Report a Problem link on the receipt to contact customer service.
    Also, change the password for your Apple ID connected to this account and perhaps remove the bank card information until you have this resolved.
    Manage your Apple ID -
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • What do the symbol and stand for in the following script? not like displa

    What do the symbol *>* and *>>* stand for in the following script? It is displacement? They do not like displacement symbols.
    $JAVA_HOME/bin/java -cp $CLASSPATH $JVM_OPT $SYS_OPT
    oracle.sysman.integration.coherence.EMIntegrationServer *>* $COHERENCE_
    HOME/mgmtnode.log *>>* $COHERENCE_HOME/mgmtnode.err &
    Thank you

    jverd wrote:
    BigDaddyLoveHandles wrote:
    But the example, if it's correct, seems to be using >> to redirect stderr, not to append stdout. The OP should identify what OS and what shell they are using.In any unix shell I'm aware of, > is overwrite and >> is append.Which is why he said "seems to be using >> to redirect stderr". Which I read to mean that BDLH also found it to be incorrect but some "corner-product" shell may do this sort of thing (not that I know, or have heard, of any that do). ;-)
    In a bourne family shell, the initial construct would cause stdout to replace the log file and append the err file, and would not redirect stderr.
    If you want to send stdout to one file and stderr to another, with overwrite, it'd be
    command > logfile 2> errfile
    Correct, of course. ;-)
    And, of course, changing either of those ">" symbols to ">>" would append (that stream), but you've already said that. ;-)

  • Why doesn't the Zoom work on images in Firefox 4 ? The page Zoom works for webpages but not for pictures like Firefox 3.7 did :(

    I have already seen the "page Zoom" help article and that doesn't solve the problem.
    with Firefox 3.7 i could view an image and use the "control" & + & - keys to zoom in and out but with the new Firefox4 that zoom only works on webpages and does not work for images like it did before.
    is there a solution to this ?
    example:
    http://nssdc.gsfc.nasa.gov/planetary/lunar/images/a11easep.jpg
    when i had Firefox 3.7 , i could zoom in and out but now it doesn't work with Firefox4
    what's the deal ? : )

    Check the Zoom settings: View > Zoom > Zoom Text Only
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.

  • I do not like to see that mozilla offers firefox for MAC and also CAMINO browsers.

    I like Mozilla.
    BUT I do NOT like to be offered two browsers for my macbook.
    WHY am I offered CAMINO and FIREFOX? Does not make sense.
    Because CAMINO is more adhered to the MAC environ, I suggest you eliminate the other and just rename CAMINO as the version of FIREFOX for Macs! Simple, more economic for you.
    Because now if I pick CAMINO I am picking a not very well known browser, and some webpages even do not recognize it (like the www.uned.es)

    You can provide '''feedback''' to Mozilla here: <br />
    http://hendrix.mozilla.org/
    I'm sure the users and developers of the Camino project would disagree with your opinion. And if other people thought like that back in 2002, Firefox might not exist today.

  • I installed Adobe Web and Design Preium CS6 on windows 8.1, but when I open the program the size of the menus and tools are so tiny. It is not like that for Acrobat, but all the other programs. Is there a fix for this?

    I installed Adobe Web and Design Preium CS6 on windows 8.1, but when I open the program the size of the menus and tools are so tiny. It is not like that for Acrobat, but all the other programs. Is there a fix for this?

    Thanks for the help. I installed CC and it fixed everything but Photoshop. I guess I will have to use my old laptop for images until Adobe fixes the problem. Do you know of a place where we can send issues like these to Adobe?

  • I do not like inbox search and want to use google but i cannot find any way to remove inbox--in fact when i search for it to remove you would think it is not there--but it is and i cant get it off. anyone know how?

    Question
    i do not like inbox search and want to use google but i cannot find any way to remove inbox--in fact when i search for it to remove you would think it is not there--but it is and i cant get it off. anyone know how? edit
    Details

    What you should see on a restart is a black screen followed by a screen with the Apple (at which point you let go of the two buttons). There is no progress bar, just the Apple. The Apple will stay there for 15 seconds or so, then the "Slide to Unlock" screen will redisplay.
    But, I don't think the reset will fix it for you. I just tested it, and it comes back on with the zoom still on. The only way to get it to zoom out is the tapping with the 3 fingers.
    I said to double-tap....MY BAD! You need to triple-tap with three fingers!
    Try that and see if it will display the zoom menu for you, or if it will zoom back out.
    Cheers,
    GB

  • HT4623 I do not like the new iOS 7 operating system on my iPad.  I do not like the Safari works, I do not see a way to enter or search for a new web site.  Is there a way that I can go back to the older operating system?

    I do not like the new iOS 7 system on both my iPad 2 and iPhone 4S.   I can not like the way Safari works, I can not see a way to enter name to search for new web sites.  Is there a way I can go back to the old iOS 6.1.5 operating system on my devices?  Thank you.

    I can not see a way to enter name to search for new web sites
    Put your search terms in the combined URL and search bar at the top of the browser (exactly the same as you do in most modern desktop browsers such as Chrome, Safari, Explorer). There is no separate search box, just use the box where you enter web addresses.
    And no, you cannot downgrade.

  • HT4798 Was installing new ios 7 and it asked for acct and password. it did not like and said it would email a new password. no email received. can not figure the Apple support screens to find a phone number to call. help.

    Was installing new ios 7 and it asked for acct and password. it did not like and said it would email a new password. no email received. can not figure the Apple support screens to find a phone number to call. help.

    No need for alarm. There are several folks a day posting like threads. Most folks know these phishing attempts for what they are and merely delete with prejudice.
    To the bottom line... if you wish - and I am sure Apple will take notice - you should FORWARD the email to [email protected] and delete.
    CCC

  • I do NOT like the new update for iphone (7.1). Is there a way to go back?

    I do NOT like the new update for iphone (7.1). Is there a way to go back? Every time I see a change, I think the old version is better. Especially the phone and caps. Is it possible?

    Sorry... Apple does not support the Downgrading of iOS.
    Jasper414 wrote:
    Every time I see a change, I think the old version is better.
    Give it a few days...

  • Help:alternate for calling function in where clause

    Hi ,
    In below query i'm calling function in where clause to avoid COMPLETE status records,due to this query taking 700 secs to return result.If i'm remove below function condition it's returning results with in 5 secs.Can you some one advice to any alternate idea for this?
    WHERE mark_status != 'COMPLETE'
    SELECT assessment_school,
      subject,
      subject_option,
      lvl,
      component,mark_status,
      mark_status
      NULL AS grade_status,
      NULL AS sample_status,
      :v_year,
      :v_month,
      :v_formated_date,
      :v_type,
      cand_lang
    FROM
      (SELECT assessment_school,
        subject,
        subject_option,
        lvl,
        programme,
        component,
        paper_code,
        cand_lang,
        mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,
          ccr.subject,
          ccr.subject_option,
          ccr.lvl,
          ccr.programme,
          ccr.language AS cand_lang,
          ccr.paper_code,
          ccr.component
        FROM candidate_component_reg ccr
        WHERE ccr.split_session_year = :v_year
        AND ccr.split_session_month  = :v_month
        AND EXISTS
          (SELECT 1
          FROM IBIS.subject_component sc
          WHERE sc.year          = ccr.split_session_year
          AND sc.month           = ccr.split_session_month
          AND sc.paper_code      = ccr.paper_code
          AND sc.assessment_type = 'INTERNAL'
          AND sc.subject_option NOT LIKE '%self taught%'
          AND sc.component NOT IN ('PERFORMANCE  PRODUCTION','PRESENTATION WORK','REFLECTIVE PROJECT','SPECIAL SYLLABUS INT. ASSESSMENT')
        AND NVL(ccr.withdrawn,'N') = 'N'
        AND ccr.mark_status       != 'COMPLETE'
        AND EXISTS
          (SELECT 1
          FROM school s
          WHERE s.school_code   = ccr.assessment_school
          AND s.training_school = 'N'
    WHERE mark_status != 'COMPLETE';

    One thing you can test quickly is to put the function call in it's own select ...from dual.
    This might make a difference.
    However, only you can check this, I don't have your tables or data.
    So, what happens if you use:
        paper_code,
        cand_lang,
      (select mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) from dual ) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,  --<< is the DISTINCT really needed?
          ccr.subject,
          ccr.subject_option,
    ...Also, try to find out the purpose of that above DISTINCT, is it really needed or is there some join missing?

Maybe you are looking for

  • How can I set up Gmail on my iPhone with a different domain name?

    I'm an ASU student so my email ends in @asu.edu. However its a Gmail account and I just got a new iPhone and I would really like to set it up through the mail app but it won't let me. Every time I type my email and password in the phone says: "The us

  • Are you disappointed and frustrated with the Note 3? I feel the pain!

    I feel everyone's pain with the Note 3 Issues!  I have been in the tech field for 20 years and Verizon treats me as if it is the first time they are hearing about the issues! Rather that work on a fix, I've been told that I can leave my contract with

  • Email issue in iOS Yosemite with MacBook Air

    I went through the apple community to understand the issue of those who are suffering with Email accounts in IMAP Settings.  Am not exceptional.  Tried all of it.. but still does not work.  Please suggest

  • Import tags from another catalogue without develop settings

    How do I import tags from another catalogue but not the develop settings of each image? Here's whats going on: I started with 5000 images on a hard drive. I gave a copy to someone else working on the project. I physically moved images into real folde

  • Emails sent on my behalf when requested otherwise

    During set up I was given the choice to email friends who may want to download Skype. I unticked all but 3 names of close friends. However, the next screen informed me that everyone had been sent an email from me. I couldn't be more disappointed. Thi