Which one is better to use

I'm wondering which one of these cases is better to use
WHERE b.segment1||'.'||b.segment2 in ((select codigo
                                      from tmp.viveres_vegetales)
                                      union
                                     (select codigo
                                      from tmp.genericos)
                                      union
                                     (select codigo
                                      from tmp.hijos_genericos))or
WHERE b.segment1||'.'||b.segment2 in (select codigo
                                                         from tmp.viveres_vegetales)
           or b.segment1||'.'||b.segment2 in (select codigo
                                                            from tmp.genericos)
           or b.segment1||'.'||b.segment2 in (select codigo
                                                            from tmp.hijos_genericos)

TRACE and TKPROF/ EXECUTION PLAN will tell you.
Please read:
http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
Re: HOW TO: Post a SQL statement tuning request - template posting

Similar Messages

  • c:redirect VS RequestDispatcher -WHICH ONE IS BETTER TO USE?

    WHENVER WE WANT TO ACCESS FILES FROM OHTER APPLICATIONS,WHICH ONE IS BETTER TO USE,<c:redirect> OR
    RequestDispatcher

    Please stop shouting. It is considered rude.

  • , c:redirect OR RequestDispatcher -which one is better to use

    WHENVER WE WANT TO ACCESS FILES FROM OHTER APPLICATIONS,WHICH ONE IS BETTER TO USE,<c:redirect> OR
    RequestDispatcher

    <c:redirect> is the JSTL equivalent of the sendRedirect() method of javax.servlet.http.HttpServletResponse.
    Please see here:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=405398 or search the forums for "RequestDispatcher redirect"

  • Which one is better to use? Firefox or Safari?

    Thanks!

    Everyone hates this answer, but it's really personal preference. A lot of people really like Firefox because it's open source. Personally, I'm a fan of Safari because it's a native app, so it has support for a lot of features built into Mac OS X. The two features that really set it aside for me, though, are the Reader feature, (which an extension for Firefox actually can replicate, just not well) and the ability to bring up a dictionary definition of any word by pressing Command+Control+D. Those are my two cents. Don't forgot there are other options like Chrome and Opera, too.

  • Which one is better to use..Canvas or J2ME Polish

    Hello Frnds,
    I want to add background images n want to use High level GUI, So is the polish be a good option for it , or should I go for simple j2me canvas n write my own low level... GUI like construct .....or should go for Synclast 3rd party API. library......

    I've J2ME Polish on a few projects, and it can be really nice. But sometimes you just need more, you need pure Canvas flexibility. And for that (and for 90% of my projects) I use synclast. It's a canvas based container toolkit, it allows you to do a LOT with a canvas, and you can also extend it very easily to create your own widgets for the UI.
    http://synclast.com/ui_api.jsp
    don't download the release build, it's REALLY old, download the source and compile your own jar for a much more up-to-date library.

  • Create custom forms using code or SAP B1 Studio, which one is better?

    Hello Professionals,
    I'm new to SAP B1 9.0 SDK, i'm currently creating forms using code, but i noticed that it can be mad using SAP Business Studio,
    from your experience, which one is better for performance and quality wise?.
    Your help would be greatly appreciated
    Thanks in advance

    Hi Karem,
    http://www.mepa.ch/images/documentation/B1_90_WorkWithStudioSuite.pdf
    Please Refer The Link and Start Working with Studio..
    All the best
    Regards,
    Mayank Shah   

  • Difference between Temp table and Variable table and which one is better performance wise?

    Hello,
    Anyone could you explain What is difference between Temp Table (#, ##) and Variable table (DECLARE @V TABLE (EMP_ID INT)) ?
    Which one is recommended to use for better performance?
    also Is it possible to create CLUSTER and NONCLUSTER Index on Variable table?
    In my case: 1-2 days transactional data are more than 3-4 Millions. I tried using both # and table variable and found table variable is faster.
    Is that Table variable using Memory or Disk space?
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Check following link to see differences b/w TempTable & TableVariable: http://sqlwithmanoj.com/2010/05/15/temporary-tables-vs-table-variables/
    TempTables & TableVariables both use memory & tempDB in similar manner, check this blog post: http://sqlwithmanoj.com/2010/07/20/table-variables-are-not-stored-in-memory-but-in-tempdb/
    Performance wise if you are dealing with millions of records then TempTable is ideal, as you can create explicit indexes on top of them. But if there are less records then TableVariables are good suited.
    On Tables Variable explicit index are not allowed, if you define a PK column, then a Clustered Index will be created automatically.
    But it also depends upon specific scenarios you are dealing with , can you share it?
    ~manoj | email: http://scr.im/m22g
    http://sqlwithmanoj.wordpress.com
    MCCA 2011 | My FB Page

  • I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    Why do you need a expensive MacBook Pro?
    Your attending high school and unless everyone else is rich also your likely going to be a target by the more poorer students for theft or damage to the machine.
    You could keep it home, but if you need it for class then your exposed again.
    Also at that age your not very careful yet, a MacBook Pro is a expensive and easily damaged machine.
    Unless your made of money and so are others at your school, I would recommned a low profile, just does the job cheap Windows PC.
    If it dies, gets lost, stolen or damaged because of your inexperince handling senstivie electronics then it's no big deal.
    You can buy a Mac later on when your sure you have a need for it, currently there isn't much advantage of owning a Mac compared to a PC, they do just about the same things now, one just looks prettier than the other.
    Since 95% of the world uses Windows PC's your going to have to install Windows on the Mac in order to keep your skills up there or be unemployed, so it's a extra headache and expense.
    good luck

  • Why do I have both photoshop cc and photoshop cc (64 bit) in my menu? Which one should I be using?

    Why do I have both photoshop cc and photoshop cc (64 bit) in my menu? Which one should I be using?

    The majority of the time using the 64 bit version is better, since you have more resources available (ram)
    If you need to run some older third party plugins that were only ever offered as 32 bit plugins, then the 32 bit version is the choice.
    Or if you happen to use a scanner with twain, then the 32 bit version.

  • Shutdown or Sleep, which one is better??

    I usually use my Mac Mini about 3 hours a day. At the end of the day, should I shutdown the machine or simply put it in sleep mode? Which one is better? What is the difference?
    Mac Mini   Mac OS X (10.4.6)  

    791/3237
    Hi Snawman,
    I agree with the others. In your case, better shut it down for saving energy.
    "Which one is better? What is the difference?":
    - Sleep allows to very quickly resume any task that was running. Leave all applications, documents etc open, they'll just be here at the same place, in the same state, as when you left your computer.
    It's just a matter of quickly going back to work, not having to retype some websites login passwords for example, etc.
    - On the wear and tear point of view, the difference is so small, your Mini will be obsolete and replaced with a newer Mac, far before something breaks down just because of to many cold boots!
    Yes, the most demanding task for a computer's hardware (and probably OS too), is a cold boot.
    Sleep, instead of Shutdown, keeps your computer components from a lot of temperature fluctuations, and the hard disk too just spins down, instead of completely setting itself down, then up again from scratch (and cold).
    Again,
    these differences exist, but they are not so important that you would take them into account and change your energy saving habits.
    - Macs are well designed to cope with many different kinds of users/usages.
    "About running yourself the nightly automatic maintenance":
    In case you didn't know already about this: yes, just open Terminal and paste this command
    sudo periodic daily weekly monthly
    once or twice a month.
    In order to make sure all three maintenance tasks run until the end, after you entered your admin password and hit Return, just leave Terminal open like 15 minutes or so (until you see its prompt again).
    There is no hurry to quit it, as the maintenance runs in the background: Just use your computer in the meanwhile.
    Enjoy your Mac!
    Axl

  • For developer's point of view which one is better- 10g or 11g

    guys please help me out.
    let me konw from developer's point of view which one is better 11g or 10g.
    i want to apply for oracle.

    user9342767 wrote:
    guys please help me out.
    let me konw from developer's point of view which one is better 11g or 10g.
    i want to apply for oracle.Assuming you are talking about Oracle Database 10g and Oracle Database 11g, and not any of the other products that use the brands 10g and 11g (and assuming you want to discuss that here instead of the appropriate product forum where it belongs), here are some of my thoughts:
    - if you are not using any 11g features, nor any new-in-10g features that have been fixed in 11g, it does not matter;
    - if you are using 11g features, then 11g is the way to go;
    - if you want (or want your customers to have) regular support past July of this year, go 11g;
    - if you want the latest fixes in the optimizer, go 11g;
    - if you want to save yourself code by using database features, look at the docs and see whether they will help.

  • Which one is better EP with ABAP or EP with Java

    Hi Experts,
    Please tell me Which one is better EP with ABAP or EP with Java for learning and useful in USA?
    Regards
    Jana

    What programming background do you already have?  You should match up the flavor of Web Dynpro that matches the skill sets you already have?  Do you have ERP or other Business Suite experience already?  If so you will find that WDA is often used in conjunction with the Business Suite and WDJ used for composites.  So consider where your business domain experience and knowledge lies and support that as well.

  • Business Delegate- JSP or JSP- JavaBean, which one is better?

    My current approach is to use a struts action to call a business delegate(pojo) which will go to the session facade and get database info then the JSP simply becames a FETCHER(which helps on reusablity since I can use them for many tables), but I also know I could use struts action to just simply forward to a JSP then retrive the info via JavaBean->EjbSessionFacade
    I'm confused which one is better for performance, scalability, maintainability, etc

    Whatever flow you are following is generally used flow and its correct aslo. Dont think its a bad design. One more think you have to look into is, minimize the remote calls as much as possible. Instead of doing many remote calls you can use EJB local object to process all your business logic and finally you can come out using single Remote call for a process. Look after this.. it will improve performance.

  • Macbook pro retina samsung panel, lg panel, which one is better?

    macbook pro retina samsung panel, lg panel, which one is better?

    grim992 wrote:
    So are the macbook pro retina early 2013 version with LG panel having IR issue?
    Mine hasn't yet but time may tell. At the same time I asked a question on the endless IR thread and never got an answer: to what extent is how the rMBP being used driving image retention?
    I'm sure there are other variables but the one that comes to mind first is how bright is the screen run? I would imagine that a monitor set to full brightness (as one user who complained about IR did) would accelerate any tendency toward IR and the closer to "full-on" it's set, the sooner that would happen. I have mine set to "5" of the available range and for the first week, I ran the Image Retention Test in all its variations repeatedly without a hint of IR. We also don't know whether the LG at full brightness can illuminate an auditorium while the Samsung can only light up a room or vice-versa.
    Other variables could be: is the screen saver used; how long before it kicks in; is the rMBP the only computer so it's used constantly; is it ever powered off or is the monitor just allowed to sleep?
    Based on those thousands of posts, the original LG's appear to be more prone to IR than the Samsung, but there hasn't been the same flood of complaints with the LG SJA2's, at least not yet. At the same time, there hasn't been any attention I could find about contributing factors either.
    And notably,  way back when the Samsung started to be the Holy Grail, I don't remember complaints about color problems; that seems to have cropped up recently.

  • Hi. I am preparing for CA Bar Exam. I am considering buying MacBook Pro for exam writing. One is 13 inch 1499 dollar 2.5 GHz 8GB, the other is 15 inch MacBook Pro 2.7 GHz 2799 dollar 16 GB. Both are retina. Which one is better for me?

    Hi. I am preparing for CA Bar Exam. I am considering buying MacBook Pro for exam writing. One is 13 inch 1499 dollar 2.5 GHz 8GB, the other is 15 inch MacBook Pro 2.7 GHz 2799 dollar 16 GB. Both are retina. Which one is better for me?
    I will use Barclays Card for 18 month free interest.
    I wil ask Apple clerk to avoid LG monitor.
    I will buy those in Apple store.
    Which one will you recommend?

    Tha's something you need to decide for yourself.
    Do you think you need 16GB of memory or 8 will be enough?
    Do you need to carry your macbook around with you more often? if so just get the 13" it's easier to carry.
    Or maybe you enjoy watching media on a bigger screen?
    As for word processing it shouldn't be a problem on both notebooks.
    Also can you afford buying the 15"?
    And what about the hard drive capacity?
    So my advice is to consider these aspects, make a list of pros and cons and see what you come up with

Maybe you are looking for

  • Buffer overflow when upgrading to Mavericks from Snow Leopard

    I haven't been able to install the upgrade to Mavericks and am unsure of what is wrong on my Intel Core Duo iMac. I recently upgraded to 4 gig memory. This is the section of the error log I think is pertinent. Sep 28 16:35:47 downstairs.att.net Repor

  • LRT214 DNS Proxy stops working

    Hi, I have been using the LRT214 for a few months now. I have a few hostnames in the 'Internal DNS list' for internal devices. So I set DHCP to use 'DNS Proxy' and then set the LRT214 to use google dns. It works well most of the time - clients can re

  • Has anyone used picture in picture video on ipad?

    I was wondering if ipad 4 has picture in picture capability, considering it has the bigger screen and all. I think I saw 4k video player that can play multiple windows of video, but I have not seen a picture in picture video. Thanks.

  • Image on top of multi-state object

    Is it possible to put an image on top of a multi-state object? I have tried converting the image to a button, but it won't go on top of the MSO.

  • Upgrade from AMEX PRG to Platinum? What About Bonus Points?

    I just got my PRG in May and my first statement just posted. I went to the Amex upgrade site and its offering the Platinum charge card. Does this mean I'm eligible to upgrade to the platinum ?? I remember reading that you had to have your card for 12