What does cost mean in execution plan?

What does a cost increase actually mean compared to the decrease of data that has to be processed?
More details:
I have 3 tables:
- users
- transaction types
- user transactions
I'm joining user transactions with transaction types for a particular user and aggregating some result from the transaction type table.
Originally there was no index on the user transactions table containing both the user_id (on which is filtered) and the transaction id. This lead to a TABLE ACCESS and joining a lot of data for nothing. I created an index to contain both fields so that no more TABLE ACCESS is needed. It indeed reduced the amount of data to be merged and aggregated considerably, but the COST of the query went up! This I don't understand. (the query itself did not seem to take more/less time).
What does a cost increase actually mean compared to the decrease of data that has to be processed?
Below are the two execution plans:
Execution plan with low cost and table access.
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=51 Card=1 Bytes=33)
1 0 SORT (AGGREGATE)
2 1 HASH JOIN (Cost=51 Card=283759 Bytes=9364047)
3 2 TABLE ACCESS (BY INDEX ROWID) OF 'THIRD_PARTY_TRANSACT
IONS' (Cost=2 Card=448 Bytes=8960)
4 3 INDEX (RANGE SCAN) OF 'X_TP_TRANSACTIONS_USER' (NON-
UNIQUE) (Cost=1 Card=448)
5 2 INDEX (FAST FULL SCAN) OF 'X_ISP_TRANSACTIONS_TRID_FIN
AL' (NON-UNIQUE) (Cost=4 Card=63339 Bytes=823407)
Execution plan with only index join but high cost
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=272 Card=1 Bytes=28)
1 0 SORT (AGGREGATE)
2 1 HASH JOIN (Cost=272 Card=3287 Bytes=92036)
3 2 INDEX (FAST FULL SCAN) OF 'X_TP_TRANSACTIONS_TRID_USER
ID' (NON-UNIQUE) (Cost=21 Card=3287 Bytes=49305)
4 2 INDEX (FAST FULL SCAN) OF 'X_ISP_TRANSACTIONS_TRID_FIN
AL' (NON-UNIQUE) (Cost=4 Card=63339 Bytes=823407)

when oracle parses and optimises a query it creates several execution plans and assigns a cost to each plan.
It then uses this cost to compare these plans.
But you can't use this cost as an indication of how "heavy" a query is, nor can you compare the costs between different queries.
It is only a value used internally by oracle.
greetings
Freek D

Similar Messages

  • I canceled my month to month Extension Builder plan but "Withdrawn: active on September 27, 2014 " under the product, What does this mean? Is it going to be reactivated on September 27, 2014?

    I canceled my month to month Extension Builder plan but "Withdrawn: active on September 27, 2014 " under the product, What does this mean? Is it going to be reactivated on September 27, 2014?

    I canceled my month to month Extension Builder plan but "Withdrawn: active on September 27, 2014 " under the product, What does this mean? Is it going to be reactivated on September 27, 2014?

  • What does ATP mean in TPVS

    What does ATP mean in TPVS. and what is the use?

    The meaning of ATP is same as it is in R/3
    TP/VS : Transportation Planning/Vehicle Scheduling
    The orders (sales orders, purchase orders, returns, or stock transport orders) and deliveries that you have created in SAP R/3 and transferred to SAP APO using SAP APO Core Interface (CIF) form the basis for planning.  The result of TP/VS planning are planned shipments that you transfer to SAP R/3 after planning is complete. There you use the SAP R/3 component Logistics Execution (LE) for transportation execution.
    If you plan planned shipments for deliveries, you can change delivery deadlines in SAP R/3 from within TP/VS.

  • Why has my monitor suddenly begun to have a moiré pattern all over – it is even showing up on my icons on the dock? It appears to be very thin bright green vertical lines. I have a 2008 iMac which is running 10.6.8. What does this mean?

    Why has my monitor suddenly begun to have a moiré pattern all over – it is even showing up on my icons on the dock? It appears to be very thin bright green vertical lines. I have a 2007 iMac which is running 10.6.8. What does this mean? I've attached some screen shots below.
    Also experiencing some funky issues with my wireless keyboard. With new batteries, it will just stop functioning. Certain keys intermittently won't work. Also the fans go on as soon as I turn the computer on - some times they stay on and sometimes they don't. Ever since upgrading the operating system - I've been having many issues with this iMac. Not happy. Any answers out there?

    Thanks for your reply LexSchellings, There is no disc in the drive and I went through the suggestions you put forward on the phone with Apple support without any luck. I can put a disc in but it pops straight back out again without registering on finder.
    The idea of using an external drive was to enable me to avoid the cost and loss of productivity whilst machine in repair... if I have to take it in to get the old drive removed than I might as well have a new internal drive put in, although I do worry about the reliability of these apple drives given my experience with this one coupled with my limited online research ... on line forums seem to be full of people with the same problem (although perhaps searching such forums is bound to make it seem a common problem as users with perfectly working machines are less likely to post (?)) Your reply suggests that no external drive will work whilst the existing drive is in place.
    As a postscript: I do realise that this is a user forum ...my secondary question was asking if anyone knows how to put forward a case/complaint to Apple... I can't find a link on the support page that would enable me to do so and I was wondering if anyone on this user forum had any ideas/experience..

  • Error Message regarding Facetime: I am getting this error message when I try to open Facetime on my iMac desktop "This beta version of FaceTime has expired." What does it mean? How do I get it to work again?

    I am getting this error message when I try to open Facetime on my iMac desktop "This beta version of FaceTime has expired." What does it mean? How do I get it to work again?

    The Beta version of Facetime is a free test/trial version that Apple placed on some computers in the past.  It has expired -- to get a working Facetime version back you must go to the App store and purchase "Facetime for Mac" which will cost you 99 cents. 

  • HT201299 what does it mean when you get this message on the Iphone? "online maps consume data traffic"

    what does it mean when you get this message on the Iphone? "online maps consume data traffic"

    That means that if you use online maps, it will consume data. If you're on WiFi, no worries. If you are on cellular data, then it will eat into your cellular data plan.

  • Panic!  What does this mean???? help

    Hi,
    My macbookpro is just 3 weeks old and I already had 3 panics.....
    Here is the log file for one of the event:
    Mon May 28 18:34:45 2007
    panic(cpu 1 caller 0x0035DF18): mbuf address out of range 0x1183000
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x14203b68 : 0x128d08 (0x3cb134 0x14203b8c 0x131de5 0x0)
    0x14203ba8 : 0x35df18 (0x3eb8f4 0x1183000 0x144eb78 0x206)
    0x14203be8 : 0x23ab46 (0x25b70100 0x0 0x1e2 0x1)
    0x14203cf8 : 0x23ed3a (0x2b8e394 0x25b70100 0x1 0x1e2)
    0x14203d38 : 0x361033 (0x2b8e16c 0x0 0x25b70100 0x0)
    0x14203dd8 : 0x35342d (0x2b8e16c 0x0 0x14203e9c 0x25b70100)
    0x14203e08 : 0x34f370 (0x3478dd0 0x14203e9c 0x2d89004 0x0)
    0x14203ef8 : 0x34f604 (0x3663dac 0x3478dd0 0x33 0x13a11930)
    0x14203f58 : 0x379e23 (0x3663dac 0x2ff3cb8 0x2ff3cfc 0x0)
    0x14203fc8 : 0x19b17e (0x2eb2900 0x0 0x19e0b5 0x2eb2ac0) No mapping exists for frame pointer
    Backtrace terminated-invalid frame pointer 0xb019f558
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
    What does this mean?
    Is there a fix?
    Thank you.
    Fred

    fredericlang,
    Your plan sounds good to me, and yes, there could be some "intermittent" hardware failure causing the panics.
    Before we go on, I want to establish that you should NEVER have a panic, provided you have three things:
    1) Flawless hardware
    2) A flawless installation (which is why we are "zeroing" and reinstalling)
    3) No bad or conflicting kernel extension
    To back this up, I will tell you that I have only had one KP on this machine, it was long ago, and it was due to a disk error (and thus a bad installation). Currently, my "uptime" is at 44 days, 13 1/2 hours, and I put this thing through its paces every day.
    OK, well a 4th thing: Problematic peripherals.
    Let's rule these out, one by one. Are you connecting anything that could cause panics, or is anything connected when they occur? No? Let's move on.
    We are pretty sure we have ruled out a bad installation, and you are going to make double sure. Good.
    Are you installing any third-party "haxies," or anything else that might place kernel extensions in the Extensions folder? Are you running the Migration Assistant to transfer stuff from a PPC machine? If you can rule this last one out, we are left with only one possibility...
    HARDWARE! As I say, you should never have a single kernel panic. If you have narrowed it down to hardware, and they still occur, be firm! Insist, regardless of the results of any diagnostics, that you have a new machine, or a logic board/memory replacement. If necessary, escalate your case. Get this fixed, and get it fixed expeditiously.
    Scott

  • "Visual voicemail is currenty unavailable" message what does this mean

    ON my phone i says visual voicemail is currently unavailable" you may hve additional messages on the server"
    what does that mean?
    help 911
    thank you
    I have plenty of data space and my bill is up to date

    So I have this problem with the Visual Voicemail to but it started when I switched my Data Plan at AT&T from the Unlimited to the DataPro with Tethering.
    I did it to prepare for iOS4 any suggestions, No I do not have a 3rd Party Profile on my phone.
    Thanks

  • I looked up my operating system and it said OS Extended (Journaled) What does that mean?

    I looked up my operating system and it said OS Extended (Journaled) What does that mean?

    The version of Safari, the browser I assume you are using, is old since the version of OS X is old. Some of the streaming video sites must have new version of Safari in order to run smoothly.
    If you can tell me the model and year you purchased your MB, I can help you with a plan to upgrade the software on your MB.
    Here is the pane from my Mac. If you can provide that same information from your MB that will help.
    Allan

  • What does it mean when a box says my Time Machine back-up disk can't be found?

    I clicked on my Time Machine icon on the Dock and a box popped up that says my Time Machine back=up disk can't be found.  What does this mean?  What should I do about it?

    Have you been using Time Machine up until now?
    If yes, then check that your Time Machine backup disk is properly connected and mounted. It should appear on the desktop. If it is indeed there, then open Time Machine Preferences and make sure that the disk is designated as the backup disk.
    If you haven't been using Time Machine until now, check that a disk that is ~ 3 or 4 times larger than what you plan to back up is connected and mounted, and go into Time Machine prefences and designate it as your backup disk.

  • Managing a site - what does it mean? (Was: plss)

    what does it mean 2 manage a site

    Copying from Managing a website : Dreamweaver (http://oreilly.com/catalog/dreamweavernut/chapter/ch06.html)
    Everyone knows that planning is the first step in web site development, but many people overlook the need for ongoing management. Without proper maintenance, a complex site can become riddled with broken external links, missing files, and broken CGI scripts.
    Thankfully, Dreamweaver offers all the webmaster tools necessary for deployment and long-term maintenance, such as FTP, link checking, and file checking. Even better, Dreamweaver's site management tools simplify development and help reduce the likelihood of problems down the road. Dreamweaver helps you to manage and synchronize both the local site (the development version on your personal computer) and the remote site (the version on a web server that gets published on the Internet).

  • HT3529 What does "Unlimited" mean here, "iMessage allows you to send unlimited text..."?

    "iMessage allows you to send unlimited text, photos, videos, locations, and contacts using Wi-Fi or cellular data* " What does "Unlimited" mean here, since as far as I can tell, you have to pay for a text plan and none of them are unlimited?

    As long as you both have a data connection (either cellular or WiFi) the iMessage will be sent over the data connection and only use a tiny portion of your data allowance.
    If the recipient of the message does not have a data connection, the iMessage may switch over to a standard SMS text message (if you have allowed that option in the Settings) - in which case you may be charged by your mobile network operator for the SMS as you would any other SMS you send.
    Whether or not you are charged to receive SMS is something you'd have to ask your mobile network provider.

  • What does it mean "Service Provider: Cellular wireless ready"?

    I have just bought Thinkpad T500 type-model 2082-5XU. I read some specifications (on advertise in store like ebay, superwarehouse.com, shopping.com etc. and find sentence "Service Provider: Cellular wireless ready". I don't know what does it mean. First, i think this mean i can buy WWAN card of TT&T or Verizon to upgarde and use sim card to connect internet. But i check in tabook, this model has not WWAN upgradable. So i confuse Cellular wireless ready is mean?
    Thanks

    To expand on deggie's post. The counter on the phone is probably not the best thing to go on. Even if your plan only gives you 2 gigs, unless it is some sort of restricted plan, you can continue to use data past the limit. You'll have to pay overage charges. Your carrier may have a short code you can dial to get your data usage for the month or may have an app you can download to track your usage.

  • Help!? Hilfe!? What is the topic: "basis-url"? What does it mean?

    I want to use the iCal-Server, never before done!
    I used the standard-terms, wich was shown in the context!
    Now I want to publish my own calendar on the server!
    There is the question about the basis-url!!!
    What does it mean?
    What is the term an the correct syntax, to fill in?
    the same in german
    Ich versuche gerade krampfhaft, den iCal-Server bei uns zu etablieren!
    Ich habe vorsichtshalber alle Standardeinstellung gelassen!
    Nur, was muß ich jetzt bei mir als Client eintragen, vor allem bei dem basis-url?
    Ach, es wäre so schön, mal eine wirklich gute deutsche, vollständige und zusammenhängende Beschreibung von Apple zu bekommen!!!!
    Viele Grüße
    und schon mal Danke
    Robert

    Hello,
    FYI -- "here", as in these forums (which are targeted at BB/RIM services rather than carrier services), would not be the best place to find out something specific for one carrier. With so many thousands of carriers with dozens of different plans each, it's pretty much impossible to keep track of the specifics. The generic information is this:
    http://www.blackberryfaq.com/index.php/What_do_I_need_a_Data_Plan_for%3F
    But, there certainly can be variations on that given the different packages carriers put together. I do suggest you do as JSanders recommended -- contact your carrier and find out what you've signed up for.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What does this mean:Photoshop 13.1.2 for Creative Cloud Installation failed. Error Code: U44M1P7

    What does this mean:Photoshop 13.1.2 for Creative Cloud Installation failed. Error Code: U44M1P7
    I found the manual update, which worked!
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5595&fileID= 5604

    Hi Barbara,
    For failed 13.1.2 update error U44M1P7, Please refer to the solution mentioned in the following threads :
    http://forums.adobe.com/message/5396792#5396792
    http://forums.adobe.com/message/5409050#5409050

Maybe you are looking for

  • Trying to do a insert activity and fire a  skill buildmodal window  on butt

    I am trying to do insert activity on my form..so for that button action type is ..submit form... withdatabase action as insert.. While i also need to execute a modal window trigger.. so then the button type action needs to be redirect to url .. How c

  • Unable to clear the cache content

    Hi messages are stuck in queue, so i went smq1 & smq2 and clear the queue. again i processed it while putting the file in ftp. In sxi_cache i went and seen it is showing - Unable to clear the cache content. traffic light is in red mode. I know that i

  • Date Picker BUG on APEX 4.2.1

    Hi all could you please open a ticket for the following bug. Reproducing the bug very simple. Apex specification : version 4.2.1.00.08 I'm not using HTML 5 template but the classic "Blue and Tan" one. 1) Create a page with date picker with mask (DD-M

  • Apple TV EQ

    Is there any way to set an EQ for music playback on the Apple TV? It plays songs with the EQ from iTunes using AirTunes, but when played directly from the Apple TV the audio is pretty dull.

  • Use sql loader in forms

    when i put the following statements into oracle forms 9i using a mouse trigger procedure, it compiled successfully but the data was not upload BEGIN HOST('C:\orahome1\bin\sqlldr userid=hr/hr@orcl control=e:\table1.ctl data=e:\file.csv log=e:\abc.log'