What is the best query plan

Hi all

Please help me choose the query plan. You can tell me which is the best plan for the No. 1 query plan or no plan No 2
Map 1:

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hash value of plan: 442504905

-----------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
-----------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 1. 325. 13222 (1) | 00:02:39 |
| 1. SORT ORDER BY | 1. 325. 13222 (1) | 00:02:39 |
| 2. UNIQUE HASH | 1. 325. 13221 (1) | 00:02:39 |
| 3. NESTED LOOPS |
| 4. NESTED LOOPS | 1. 325. 13220 (1) | 00:02:39 |
| 5. NESTED LOOPS | 1. 224. 13217 (1) | 00:02:39 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 6. NESTED LOOPS | 1. 199. 13216 (1) | 00:02:39 |
| 7. NESTED LOOPS | 1. 144. 13215 (1) | 00:02:39 |
|* 8 | HASH JOIN | 1. 93. 13212 (1) | 00:02:39 |
|* 9 | TABLE ACCESS FULL | REC_EPS | 787. 25184 | 742 (2) | 00:00:09 |
| * 10 | TABLE ACCESS FULL | RECEIPTDETAIL | 1059K | 61 M | 12462 (1) | 00:02:30 |
| * 11 | TABLE ACCESS BY INDEX ROWID | LOTXLOCXID | 1. 51. 3 (0) | 00:00:01 |
| * 12 | INDEX RANGE SCAN | IDX_LLI_ISQ | 1 | | 2 (0) | 00:00:01 |
| 13. TABLE ACCESS BY INDEX ROWID | CODELKUP | 1. 55. 1 (0) | 00:00:01 |
| * 14 | INDEX UNIQUE SCAN | PK_SYS_C004623 | 1 | | 0 (0) | 00:00:01 |
| 15. TABLE ACCESS BY INDEX ROWID | RECEPTION | 1. 25. 1 (0) | 00:00:01 |
| * 16. INDEX UNIQUE SCAN | PK_SYS_C004755 | 1 | | 0 (0) | 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| * 17. INDEX RANGE SCAN | PK_SYS_C004767 | 1 | | 2 (0) | 00:00:01 |
| 18. TABLE ACCESS BY INDEX ROWID | SKU | 1. 101 | 3 (0) | 00:00:01 |
-----------------------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):
---------------------------------------------------

8 - access("RECEIPTDETAIL".") RECEIPTKEY «= SYS_OP_C2C ("REC_EPS".» ASNKEY') AND
'RECEIPTDETAIL '. "' SKU ' = SYS_OP_C2C ("REC_EPS". » « « « SKU »))
9 filter (SYS_OP_C2C ("REC_EPS". "ASNKEY") > = U '0' AND "
SYS_OP_C2C ("REC_EPS". ("ASNKEY") < = U'ZZZZZ ")

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 - filter("RECEIPTDETAIL".") RECEIPTKEY' > = U "0" AND "RECEIPTDETAIL". "" RECEIPTKEY "< = U'ZZZZZ") "
11 - filter("LOTXLOCXID".") LOC "= U 'STAGE')
12 - access("RECEIPTDETAIL".") TOLD "=" LOTXLOCXID. " "" IDENTITY CARD "AND
'RECEIPTDETAIL '. ' ' SKU '=' LOTXLOCXID. ' "' SKU ' AND 'LOTXLOCXID '. ("' QTY ' > 0)
14 - access ("LISTNAME"= U 'RECSTATUS' AND "CODELKUP"." "RECEIPTDETAIL"="CODE". ("' STATUS ')
16 - access("RECEIPTDETAIL".") RECEIPTKEY "=" RECEPTION ". ("' RECEIPTKEY")
filter ("RECEPTION". "RECEIPTKEY" > = U '0' AND 'RÉCEPTION' "." " RECEIPTKEY"< = U'ZZZZZ") "
17 - access("RECEIPTDETAIL".") SKU "=" SKU ". ("' SKU ')

41 selected lines.
=================================================================

Plan No. 2:

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hash value of plan: 1174712643

----------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
----------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 1. 325. 18382 (1) | 00:03:41 |
| 1. SORT ORDER BY | 1. 325. 18382 (1) | 00:03:41 |
| 2. UNIQUE HASH | 1. 325. 18381 (1) | 00:03:41 |
|* 3 | HASH JOIN | 1. 325. 18380 (1) | 00:03:41 |
| 4. NESTED LOOPS |
| 5. NESTED LOOPS | 1. 293. 17637 (1) | 00:03:32 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 6. NESTED LOOPS | 1. 192. 17634 (1) | 00:03:32 |
| 7. NESTED LOOPS | 1. 167. 17633 (1) | 00:03:32 |
| 8. NESTED LOOPS | 2. 224. 17631 (1) | 00:03:32 |
|* 9 | TABLE ACCESS BY INDEX ROWID | LOTXLOCXID | 2. 102. 3 (0) | 00:00:01 |
| * 10 | INDEX RANGE SCAN | IDX_LOTXLOCXID_LOC | 2 | | 1 (0) | 00:00:01 |
| * 11 | TABLE ACCESS BY INDEX ROWID | RECEIPTDETAIL | 1. 61. 8814 (1) | 00:01:46 |
| * 12 | INDEX SCAN FULL | IDX_RD_QCREQ | 1 | | 8813 (1) | 00:01:46 |
| 13. TABLE ACCESS BY INDEX ROWID | CODELKUP | 1. 55. 1 (0) | 00:00:01 |
| * 14 | INDEX UNIQUE SCAN | PK_SYS_C004623 | 1 | | 0 (0) | 00:00:01 |
| 15. TABLE ACCESS BY INDEX ROWID | RECEPTION | 1. 25. 1 (0) | 00:00:01 |
| * 16. INDEX UNIQUE SCAN | PK_SYS_C004755 | 1 | | 0 (0) | 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| * 17. INDEX RANGE SCAN | PK_SYS_C004767 | 1 | | 2 (0) | 00:00:01 |
| 18. TABLE ACCESS BY INDEX ROWID | SKU | 1. 101 | 3 (0) | 00:00:01 |
| * 19. TABLE ACCESS FULL | REC_EPS | 787. 25184 | 742 (2) | 00:00:09 |
----------------------------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):
---------------------------------------------------

3 - access("RECEIPTDETAIL".") RECEIPTKEY «= SYS_OP_C2C ("REC_EPS".» ASNKEY') AND
'RECEIPTDETAIL '. "' SKU ' = SYS_OP_C2C ("REC_EPS". » « « « SKU »))
9 - filter("LOTXLOCXID".") QTY' > 0)

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 - access("LOTXLOCXID".") LOC "= U 'STAGE')
11 - filter("RECEIPTDETAIL".") RECEIPTKEY' > = U "0" AND "RECEIPTDETAIL". "" RECEIPTKEY "< = U'ZZZZZ") "
12 - access("RECEIPTDETAIL".") SKU "=" LOTXLOCXID. " "' SKU ' AND
'RECEIPTDETAIL '. "" TOLD "=" LOTXLOCXID. " (' ' ID ')
filter ("RECEIPTDETAIL". "TOLD"="LOTXLOCXID" "." " IDENTITY CARD"AND
'RECEIPTDETAIL '. ' ' SKU '=' LOTXLOCXID. ' ("' SKU ')
14 - access ("LISTNAME"= U 'RECSTATUS' AND "CODELKUP"." "RECEIPTDETAIL"="CODE". ("' STATUS ')
16 - access("RECEIPTDETAIL".") RECEIPTKEY "=" RECEPTION ". ("' RECEIPTKEY")
filter ("RECEPTION". "RECEIPTKEY" > = U '0' AND 'RÉCEPTION' "." " RECEIPTKEY"< = U'ZZZZZ") "
17 - access("RECEIPTDETAIL".") SKU "=" SKU ". ("' SKU ')
19 - filter (SYS_OP_C2C ("REC_EPS". "ASNKEY") > = U '0' AND SYS_OP_C2C ("REC_EPS". " ASNKEY") < = U'ZZZZZ") "

44 selected lines.

Did you test them? You do not have us given information on why you want to use one over the other... For example, do you need to recover as soon as possible all lines or do you want the first rows as quickly as possible? Given that you did not formatting on your plans and we do not request or background, we can say nothing. Even for an experienced DBA/developer - it is not always possible to read a plan and determine which is the 'best' - test and then you can tell us.

Tags: Database

Similar Questions

  • What is the best plan for graduates?

    I am a recent college graduate and my student account has expired. I only use photoshop, illustrator, and adobe reader, what is the best plan and the more affordable for me?

    Hello

    See pricing and membership creative cloud plans | Adobe Creative Cloud

    Hope that helps!

    Kind regards

    Sheena

  • What is the best plan for a UK based charity arts for children?

    As a UK based Arts charity for the artistic education of children, what is the best plan to allow more than one team member to access the software?

    It is best to contact Adobe sales team and check with the pricing details:

    Adobe | ADOBE SALES - EMEA

  • my designer sews expires soon. I currently pay 9.99 per month. all I use is photoshop. What is the best PLAN for me?

    WHAT IS THE BEST PLAN FOR ME. WHAT I USE IS PHOTOSHOP

    You already have the cheapest plan - special photography Plan includes Photoshop & Lightroom and Bridge & Mobile Lightroom - Cloud Plans https://creative.adobe.com/plans

  • What is the best way to optimize a SQL query: call a function or doing a join?

    Hi, I want to know what is the best way to optimize a SQL query, call a function inside the SELECT statement, or make a simple join?

    It depends on.  Could be a.  Could be the other.  Could be no difference.  You would need to compare with your tables in your environment with your settings.

    If you put a gun to my head, I was given no other information and required that I answered the question, I would tend to wait that the join would be more effective.  In general, if you can do something in pure SQL, it will be more effective than if you call PL/SQL.

    Justin

  • What is the best way of reformatting my MacBook ssd for resale?

    I'm preparing my 2015 12 '' MacBook 1.3 GHz 512 for resale.  What is the best way to erase and reformat the SSD drive?

    Thanks in advance!

    -jag

    Before you sell or give away your computer, and more the steps listed in this article to support, please follow these steps:

    1. run the Diagnostics from Apple or the Apple Hardware Test. The buyer will do (or it should), and you won't be surprised by the results.

    2. reset the PRAM and the SMC, which may contain personal information.

    3. If you set a firmware password, remove it by running the utility in recovery mode firmware password.

    4. If you turn on FileVault in OS X 10.7 or later, turn it off.

    5. If you use Boot Camp, the partition must be deleted.

    6. If you have created another partition of data on internal disk, remove them in disk utility.

    7. If the machine has an internal hard drive, erase the remaining data partition with the possibility of putting the data to zero. An SSD has no need to be set to zero.

    8. remove the machine from your list of registered products. If it is still covered by an AppleCare Protection Plan, transfer the warranty to the new owner as described in the terms and Conditions AppleCare (under the heading "Transfer of Plan.")

    Note also:

    You can legally or transfer almost any software downloaded from the Mac App Store to the new owner of the machine, even if it was free. This includes OS X, so if you've switched to OS X 10.7 or later, you need to reinstall an operating system older, either from the installation media, if any, or by commissioning in recovery mode of the Internet (option-command-R start ringing.)

    The new owner will have to re-download everything software that came on the App Store, as appropriate, including updates of OS X, under her Apple ID. If you never updated applications bundled iLife (iPhoto, iMovie and Garage Band) through the App Store, you can not transfer these either. The buyer must buy them. Note that iPhoto has been suspended and is no longer available for purchase.

  • Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    I'm going to assume that you plan to have wireless devices.

    Let's say that the Capsule is your "main" router  If this is the case, then it must be located in the House, so that the distance between the time Capsule is the same for the outside walls of the House.

    Then, on the 'left' side of the House, looking for an airport to midway between the Capsule and time of the outer wall of the House. Do the same thing the 'right' side of the House.

    In other words, each of the two airports that "extend" the wireless signal are located at equal distance from the Capsule of time... but they are in opposite ends of the House.

    If you intend to interconnect all the airports and Time Capsule using a permanent, Ethernet wired... which by far is the 'best' way to put in place a network in terms of performance and reliability... then you can locate one of the devices anywhere you want.

  • Support for Windows XP. What is the best OS to install, Windows 8, 7, 8.1?

    I have Windows XP Professional and see that Windows XP will support ending April 8, 2014. My question is quite simple: what is the best operating system to install instead of XP? Is - this Windows 8, Windows 7 or Windows 8.1? I don't want a touchscreen application. I'm used to XP. I have a desktop computer with a lot of programs running at the same time, am constantly downloading big files and open the three browsers (MS IE, Google Chrome, Mozilla). I can't afford downtime if things stop grinding and safety is an important issue for me. I want to continue to receive updates. Any help from the community would be greatly appreciated. Has anyone had Windows XP Professional and already past to another OS? If Yes, what kind of problems you are having or, at the other end are things runnig smoothly?

    Thank you!

    I don't have personal experience with Win 8, so take the following with a grain of salt.  It is my understanding that Win 8 is really designed for touch screens, although it works without one.  There was a lot of vocal dissatisfaction with Win 8, but which can decrease as people get more used is a pretty important user interface change.

    I had XP Pro Win 7 Pro change quite easily.  In addition, if you plan to use your hardware even (rather than buying a new computer with Windows pre-installed), your old hardware is support Win 7 to 8 win more.

    My suggestion: go with Windows 7 Professional

    If you plan to install one of these operating systems on your current hardware, run these first:

    Windows 7 Upgrade Advisor
    Upgrade Wizard of Windows 8 (for 8.1, see http://windows.microsoft.com/en-us/windows-8/upgrade-from-windows-vista-xp-tutorial)

  • What is the best way to save/download msg text from phone to computer?

    I know that I can email to my email address so I can see it on my computer, but this method does not display the text msg date time stamp. So, what is the best method, where no information is lost?

    Hello

    1. What is the brand and model of the phone?

    2. using windows mobile?

    If you use Windows mobile, then I suggest you to post your query to:

    http://answers.Microsoft.com/en-us/WinPhone

  • What is the best graphic card

    I have nVidia GeForce 6150SE nForce 430, I plan to buy the new map, but what is the best graphic or video (I don't know how to say probarly) for my pc? (FOR GAMES! Like Assassin's Creed, Call of Duty: Modern Warfare 2, Far cry 3/2)

    Windows 7 Ultimate 32 bit
    AMD Athlon (TM) 64 X 2 Dual core processor 5000 + 2.61 GHz x
    2 GB of Ram (trying to install more using ReadyBoost and Flash Drive) (is it good for games?)

    (If you need more information, ask me and please answer, I need help and my ca drags so much =)

    Now that you hijacked the thread and says the OP to throw his computer, what other great tips do you have?

    And BTW, PCI Express cards don't match all the same dwelling - some sites are physically larger as others, but you can just stick it in there and that he can enter, right?

    I'll let the OP as to what he wants to do. However, next time, to respect the process and the OP said the technical comfort level.

    Disgusted,

    BearPup

  • I recently bought a computer build-yourself. My question is what is the best way to mirror or save files on the two hard disks at the same time?

    Hello community,

    I recently bought a computer build-yourself.
    My question is what is the best way to mirror or save files on the two hard disks at the same time?
    I know there is a way in diskmgmt.msc, but I can't seem to make it work.
    Spec:
    Windows 7 Professional 64 bit
    8 GB ram ddr3
    2 x 1 TB hard drive

    On Saturday, 22 September 2012 00:53:18 + 0000, kevin.coe wrote:

    As I said, I think it's not only not a good idea, I think it's a very

    a poor man. Backup should be stored outside the computer content. Or
    use a service like Carbonite Online backup.

    Ken Blake, Microsoft MVP

    What is raid? A large number of people I know use raids.

    RAID 1 (mirroring) is not a backup solution. RAID 1 uses two or
    Several readers, each one duplicate of the other, to provide redundancy,
    no backup. It is used in situations (almost always inside)
    companies, not in homes) where any city cannot be tolerated.
    because the way it works is that if a disk fails the other takes
    more seamlessly.

    Although some people thing of RAID 1 as a backup technique, it is
    what it is, because it is subject to a simultaneous loss of the
    original and many of the main dangers facing the mirror
    your data - serious power, close to the lightning seeds, virus
    attacks, stolen computer, etc. Most companies that use RAID 1
    also have a solid plan of external backup in place.

    "Why the RAID is (usually) a Terrible idea".
    http://www.pugetsystems.com/articles?&ID=29
    Ken Blake, Microsoft MVP

  • What is the best workflow for longer projects with music?

    Hello. I'm just getting into after effects and WOW, I soak every tutorial I can. That being said, I wonder what's the best practice for working with longer projects. Let me give you a scenario.

    So, I have my HAND COMP with piece of music in 3 minutes I sync up to my animations.

    I create ANIMATION COMP 1 and drop it in the HAND COMP.

    So let's say that I want to adjust something in ANIMATION COMP 1.

    I switch back to ANIMATION COMP 1 window to make my adjustments.

    Problem: Bed of music is in comp 1 so I can't listen to music and make adjustments accordingly.

    The obvious solution is to simply create everything on 1 composition. But is there a way to make the MAIN COMP room if you change a secondary layout?

    Thank you

    The only sensible thing to do for a few minutes longer project to edit in Premiere Pro and make the moves you must treat as individual comps in After Effects. Comps are for the creation of pictures and short clips. Try to put 80 or 100 cups in a single cimp is not only difficult to treat, but finding the flow with the music of changes are almost impossible.

    If you want to get a real specific on all your production must begin before a single frame is shot. Shot a bunch of stuff and try to build something later are a very very bad idea unless there is no other choice. I did a lot of musical projects him more than 45 years in the business and even if you can't draw, just block storyboards will save you a lot of time.

    I hope this helps. If you remember that make you plans in an EA and you had it first and you mix sound in addition, you will be in good shape.

  • How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    After two execution plans that have the same sql_id, so we can see what you're talking about.

    See "Oracle Explain Explain Plan optimizer" by Maria Colgan of the Oracle optimizer group

    http://www.Oracle.com/technetwork/database/bi-Datawarehousing/TWP-explain-the-explain-plan-052011-393674.PDF

    Examine the various aspects of a selectivity to parallel execution plan

    performance and understand what information you should be brilliant

    the plan can be overwhelming even for the most experienced DBA. This document

    offers a detailed explanation on each of the aspects of the execution plan and a

    Overview of what caused the CBO to make the decision, he did.

  • I have creative photography of cloud. I would like to add Indesign to my subscription. What is the best way to do it?

    I have creative photography of cloud. I would like to add Indesign to my subscription. What is the best way to do it?

    Go here for pricing and membership creative cloud plans | Adobe Creative Cloud and add a subscription from

  • What is the best strategy to implement a training activity of 5 days using Adobe Creative Cloud demo for 20 people?

    Hello

    What is the best strategy to implement a training activity of 5 days using Adobe Creative Cloud demo for 20 people?

    Will we have 20 unique Adobe ID? The demo can be downloaded and executed on multiple computers with a single Adobe ID? The Installation of the demo is clone-able by imaging / ghosting software? I work for a training logistics company, and we strive to take into account a client who wishes to use this software as part of their training.

    All the tips are greatly appreciated. The goal is to have an installation plan that is more effective.

    Hello

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

Maybe you are looking for