Minimising throw away rows?

Friends,
I am trying to tune a query that is taking too long to return it's results.
One of the things I have noticed when looking at the explain plan is that during some parts of the execution it retrieves up to 70,000 records however the first line of the plan reads
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
| 0 | SELECT STATEMENT | | 6138 | 18M | | 8965 (0)|
Which I understand is the total number of records used by this query.
I know with SQL tunning that there are no hard and fast answers, however any pointers on how best to minimise the number of throw away rows would be appreciated.
Thanks in advance.

Ian,
As you mentioned, it is rather difficult to say anything, that too by looking at just one line of execution plan. Are you expecting the query to return 6138 rows as result ? Minimizing number of rows flowing out of each step is one way to look for tuning. If you are seeing 70,000 rows being flown out of some step in execution plan, that might be area to concentrate on. Is it some SORT step which is throwing out 70,000 rows ? It may be possible for you to defer the SORT by restructuring the query (ofcourse, without affecting end result). Pushing WHERE predicates i.e. filtering data as much as possible before joining or processing it further is also a an option to reduce large number of rows seen in execution plan.

Similar Messages

  • How much code do you throw away?

    Every now and then I have some slow time when I have punted everything to the testing team and I start looking at the next thing to attack. In these process I kick around ideas and implement them to see if they are any better then the current way of doing things. Some times I get 80% the way down the path and hit an unforeseen limitation. Other times when finished it is not as good or better enough to justify implementing over the current way. The worst is when I believe it is better but am unable to convince folks it is worth the effort. Occasionally time runs out and the idea withers on the vine.
    I would say about 80% of these skunk work projects end up tossed out. Probably, only about 30 - 50% of the code gets tossed the bit bucket since inevitably a bunch of new stuff is learned that is useful.
    How much code do y'all throw away, or am I an odd ball this way?

    TexMark wrote:
    Great, I thought it had to be the way things needed to be done. I actually would change careers if I could not experiment it is what makes the job fun. Now for the second and more difficult part, how do you break it to someone when the idea and code they have been diligently working on for the past two weeks is an interesting idea and even cool to see work BUT it is an overly complicated way to solve a simple problem. They are already complaining that their solution should be used since they spent so much time on it and hate to have wasted it. They created their solution in a vacuum with out calling a meeting of the minds. The ultimate problem is that this is the second or third time in a row the idea will get shot down.
    My favorite quote from him is "I don't know what this solves but it has to solve something I just need to find where to use it.", it's maddening.Turn it around so that the time wasn't wasted, after all. Which it probably wasn't anyway. Then just tell them it's overly complicated, show him why and show your simpler alternative. If he's too thin-skinned to accept the facts, it's about time he learnt. Or, just live with it. Or just replace it without asking, if your culture allows it. Where I am, we all own the codebase, there's absolutely nothing to stop someone doing that, and it happens all the time. It then puts the onus on the guy to justify his more complex solution. An upshot of that is often that one or other of the solutions is actually proven to be the better, for a previously unseen reason, usually ease of ongoing maintenance

  • In my dock there was this weird program called "tutorial". While throwing away this program I had to fill in my password. Afterwards I tried to change my password, but my old password doesn't work anymore. Who can help?

    In my dock there was this weird program called "tutorial". While throwing away this program I had to fill in my password. Afterwards I tried to change my password, but my old password doesn't work anymore. Who can help?

    What was this program for, or did you just assume it's something you shouldn't have and therefore arbitrarily decide to "throw it away"? Exactly how did you supposedly throw it away?
    If you didn't change your administrator password, there's no reason it shouldn't work now, so that suggests you did something else, or changed it and then forgot what it was.
    You can't recover that password; you can only change it. To do that, you would need to boot from your Snow Leopard DVD, choose your language, then choose Reset Password from the Utilities menu in the top menu bar.

  • How can I remove the Mac protector icons? I finally deleted that program but I cannot throw away the icons?

    Hi, I have a little problem. I downloaded a malware called Mac Protector, for my fault, and now I finally have deleted that program but I cannot throw away the relative icons (in my display). How can I do?

    Where on the screen? On the Desktop? In the Dock? In the menu bar? Please post a screenshot.

  • Is the nano worth throwing away my old ipod mini?

    I just bought a ipod mini 1 month before the nano came out. So now i'm feeling kinda ticked off as you can imagine.
    The month that i did have an up to date ipod, i was enjouying it alot. In fact i currently have 200 songs on it and listen to them all frequently. So now the big question for me is if i should sell my current ipod mini so that i can buy a ipod nano.
    Is the ipod nano worth it?

    Yes. Throw away the Mini. Not literally; give it to a 7 year old just starting to appreciate music. Or, better yet, donate it to kids playing street hockey as it will glide better than a roll of electrical tape.
    The nano is that good. It's that much of a breakthrough. It re-sets the bar for all portable electronics.
    It boils down to light weight vs. capacity. If you can't listen to 4000 songs in a week, what's the point of carrying around an iBrick on the train, bus, or plane? Use iTunes, that's what it's for. It's there to be your library of all 4000 songs that you own. Once a week (or month) just dock the nano with iTunes and tweak your song choices a little bit.
    It's like carrying around a carton of cigarettes when you can only smoke a pack a day. Lots of extra weight and complexity that can be eliminated when you can have a more simple device that can do a better job.
    Ditch the Mini, grab a nano, and don't look back.
    BJ

  • Files "impossible to throw away". How do I get rid of them?

    Hi,
    I have on my desk files I didn't create, named 1CE18A00, C7DCF000, 8B0EC000,  and when I throw them away I get the message "file impossible to throw away". How do I get rid of them?
    They are marked as XLSX files, but they don't open when I double click on them.

    You will get them on IE. I suggest you also contact Google support, as this is also a problem on their end. I too have everything set to Google on both Firefox, Opera, IE, and Chrome and the only one not getting the annoying banners is surprising Google Chrome.

  • HT4623 I have the iphone 3Gs but whatsapp is no longer functioning. Does this mean that soon I'll have to throw away this useless phone?

    I have the iphone 3Gs and an old Powerbookb but whatsapp is no longer functioning. Does this mean that soon I'll have to throw away this useless phone?

    If Whatsapp is on your iPhone now and is not working, that would be a matter for Whatsapp support.
    If you cannot install Whatapp due to iOS on your computer being to old, you can try upgrading iTunes to 10.6.3, if you haven't done so already, presuming your PB is running Mac OS X 10.5.8, which may allow you to upgrade iOS on your iPhone. If your computer is not running 10.5, then you'll need to find a retail copy of 10.5 and upgrade.
    The last PowerBook was discontinued seven years ago, though, so it may be time to consider upgrading to an Intel-based MacBook.
    Regards.

  • Why does Firefox Update throw away all customization?

    Every time Firefox updates, it completely throws away all of the toolbar arrangements and other customizations I have worked hard to optimize.
    If you want people to update for "security reasons," why do you muck around with my GUI?
    I spend a lot of effort trying to get the buttons where I want them and I configured plenty of little hidden features in about:config so that the browser works right, all for nothing....
    Guess I will have to reinstall the old version I had and totally start over, this time turning update to "Never check for updates" to avoid wasting my time in the future.
    Sorry for being pissed off. I appreciate security updates, but there is no reason to force a funky GUI on everyone, and this really is a humongous waste of time needing to redo all of my settings yet again.

    Hey,
    Sorry about this issue with GUI changes, I hadn't heard of it before :/ The people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues. Hopefully they'll be able to do something about this.
    Thanks!
    Curtis Parfitt-Ford
    Mozilla Support

  • Does anyone know if I can SAFELY throw away the following items ?

    This may be a stupid question, but here goes :
    Can I throw away, I mean permanently, "ODBC Administrator" and "NetInfo Manager" utilities to clear up a little bit of space ? I have never used these.I DO NOT wanna screw everything up, so please do not reply "yes I can" unless you are 100% positive I can ... are these vitally important ?

    On my computer those two programs take up less than a total of 1 MB of space. If you are that desperate for space you'd be a lot better off even throwing away a single music file!
    [Problems from insufficient RAM and free hard disk space|http://www.thexlab.com/faqs/lackofram.html]
    Where did my disk space go?
    [http://www.macfixitforums.com/showflat.php?Cat=&Board=Forum38&Number=770243]
    Disk Inventory (free) [http://www.derlien.com>
    WhatSize (now shareware and only useful on <20GB drives until you buy it) [http://www.id-design.com/software/whatsize>
    Freeing space on your Mac OS X startup disk
    [http://www.thexlab.com/faqs/freeingspace.html]
    Amazing Disappearing Drive Space
    [http://www.pinkmutant.com/articles/TigerMisc.html]
    Increase HD Free Space
    [http://macosx.com/forums/howto-faqs/275191-how-easily-increase-hd free-space-laptop.html]
    How to free up my disk space
    [http://www.macmaps.com/diskfull.html]

  • How common is it that the on/off button stops working? Time to throw away the ipod touch? Safe to fly? No more "print screen"?

    How common is it that the on/off button stops working? Time to throw away the ipod touch? Safe to fly? No more "print screen"?

    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • Can i throw away my previous sysytem..?

    ..if i have just performed a re-install (whilst keeping using preferences and users). The previous system is occupying about 10GB on my hard drive.. so my question is this.. can i throw it away..? Will it harm anything..?
    Thanks in adavance.
    Shane

    One more thing guys,
    As it takes about 2/3 mins to boot up my Powerbook now (since i did the re-install and evicted some fonts too, ran Disk utility etc) would it make performance quicker if i upped my IGB memory to 1.5GB memory..? Or should i continue to evict more fonts (i currently have about 1,400 installed in Fontbook).
    shane

  • Minimise Cross Tab Row spacing

    Hi,
    I have created a Cross Tab table using Crystal Report 2008.
    On the rows are list of warehouses eg: Warehouse A, Warehouse B etc.
    I know I can minimise / change the font size and the Row label size by right click on the field, Size and Position eg: Warehouse A.
    However, is there a way to adjustment  the space between each row?  Ie, the white space between the row box that show Warehouse A, Warehouse B etc.
    What I am trying to achieve here is to fit 3 cross tab table into one page, while still keeping font size of the row at Arial 8.
    Hope I have explained myself well and thank for your help in advance.

    Hi,
    Thanks for responding.
    Is there a way to specify the width of the cell margin instead of totally remove it?

  • Throwing away a .dmg file. Does it erase your original file?

    I don't know what a .dmg file is. But I seem to have hundreds scattered throughout my computer.
    If I throw them away, am I in danger of loosing my original file that I downloaded?
    It appears as if whenever I download anything, I get a .dmg somewhere.
    What are they?
    Do they take up space?
    is it okay to delete them?
    Cheers.
    -An

    A dmg file is a container file for installers,folders, and applications.
    If you run the installer from the dmg file, usually it installs the applications in the Applications folder. If they are there, their corrosponding DMG file is possible to be deleted after their disk image icon (example of one) is dragged to the trash.
    If you drag a folder or application out of the above icon into the Applications folder, you can then drag the above icon to the trash, and then drag its corrosponding dmg file to the trash.
    DO NOT drag the dmg file to the trash if:
    1. You double clicked the application from the inside of and simply added to Dock (the translucent bar at the bottom of the screen), and wish to save that application for further use.
    2. You are not cloning your machine when backing up. You'll want to save any downloaded application installers to CD in case you need to restore your system from your backup. See my backup FAQ*:
    http://www.macmaps.com/backup.html
    Treat dmg files as containers of disk images.
    When double clicked those image files will become:
    and will only exist as such until you either drag it to the trash, or reboot your Mac. Their contents must be moved if you want future access to them after deleting the dmg file.
    - * Links to my pages may give me compensation.
    Message was edited by: a brody

  • *DO NOT* throw away the N95 CD !!!!!!!!!

    When I originally purchased the N95 (SIM Free) I was told by the sales guy to throw the CD away as there was a newer version of PC Suite on the internet.
    Since I'm technically able and already owned a Nokia mobile I knew I had the latest version of PC Suite installed so I put the CD aside (I never throw anything away unless it's junk mail).
    Lo and behold a week ago I decided to try to get UPnP working (unsuccessfully) - as I couldn't be bothered reading the manual (big mistake) I kept visiting the N95 website and downloaded the online version of the manual which stated that the CD had an application which you need in order for UPnP to work on the PC end.
    So - I'm installing that program now and giving it another go - as an added bonus there's a Windows Media Player v11 driver which you can use to install music onto your N95 as well !
    Moral of the story ? Don't chuck your N95 CD away !
    Regards,
    Edward

    ive got my N95-1 streaming music over wifi. and i didnt use the disc. my firmware is v21.
    1) first you need to get "home media server" for the computer, available from simple center. google it. this is your UPnP client. make sure you select the nokia compatible software. install this. set it up as described on screen.
    2) now you need your N95. go to tools, home media. (it has been removed from gallery in one of the updates)
    3) follow the steps shown to connect to your home network.
    4) click on "browse home". it will then search for your home media server. while it is doing this go into your computer version of home media and click the "devices" tab. click add new device (top left ish)
    5) it should now search for your phone. your N95 should show up. mine did not first time, but after a few checks and re-searches on the phone and PC it came up. click it.
    6) pretty much it now. go back into your phone, into home media, click back/cancel, and click on "browse home" again. when it finds home media server click on it. it should now come up with a list of folders you can access! these should be the same ones you loaded into the computer software so any compatable file will be in there.
    7)to play music on the device, select the track you want from which ever folder you want, click the left softkey for options > play > on device. it will now stream your music*! it may take a few seconds to buffer, but it only does this on the first track.
    8) your all done! works brilliantly. i have my computer downstairs, streaming music to my phone, which is connected to my stereo in my room by a 3.5mm jack, so i get my full itunes library in my room! how cool is that!?!?
    note on adding music from iTunes: protected files (such as iTunes downloads) will not play on your phone. (booooo!)
    but any you have imported from CDs you own or other sources that are not protected will stream and play fine.
    1) to add your itunes music collection go onto your computer, go into home media server, click settings > media > add...
    2) now navigate to your itunes folder. should be in my music > itunes > itunes library. you can add just some artists (or not add some you know are protected) or add the entire folder like i did.
    if you know you are going to add your itunes library you can choose not to add media when you install media server. saves you having to remove media already loaded and then loading itunes folder in afterwards.
    *note on streaming music: some file formats are not compatable. mp3's are, but types such as apple lossless and other non standard formats are not (unfortunately, as i have all my dance music in lossless)
    there are some other cool features such as viewing pictures from your computer on your phone, and also vice versa. to view from computer go into your home media server and select pictures. it should be on the options menu to view on device, similar to playing music.
    you can show pictures on your phone on the computer by going into gallery, selecting the picture you want and clicking options>show via home network.
    you can use it as a remote control for your music to play from your computer as well. especially useful if you have a good sound system for your computer but no remote. you can play videos saved on your computer like this too.
    i hope you all have as much success and fun as i did. any questions just ask.
    ross

  • Can my hp monitor be able to connect to iPad or watch tv if I've throw away thr tower.

    Hp monitor with able to watch tv  but not I can't couse my CPU was thrown away........?

    I finally was able to solve my problem. I'm not sure why it happened but after updating my iPad to the most recent iOS, it works just fine. I had iOS 8 before, but it was the first release, not the update. I have the latest iTunes on my computer so maybe they weren't compatible. Anyway, if anyone else is having this problem, make sure everything is up to date.

Maybe you are looking for

  • SAP GRC 5.3 CUP: Initial Password not displayed

    Hi, when a user account is created in the backend system CUP sents automatically the user ID and a link such as http://<Server>:50100/AE/showPassword.do?userId=NEWUSER30&ReqNo=1061&System=ERD to the user's email adresse. When opening the link no pass

  • Keep getting Update requests

    I have an HP laptop running Windows 8. While using internet browser I am persistantly bothered with requests to allow Adobe to update the \\\flash \player - this happens every 10 minutes or so. I have installed the requested update but 10 minutes lat

  • External content list doing nothing

    I am attempting to create an external content list in Sharepoint designer and when I click on it, it literally does nothing. No error code, nothing.  Has anyone ran into this problem before? Sharepoint Online Azure SQL database Any other info you nee

  • AD & DNS setting for Hub and spoke network

    Hi, We have multiple sites connectd through VPN (Hub and spoke network). Following is the site information Head Office (DC) ----- contoso.com ------ 192.168.100.2 Site1 (ADC) ----- site1.contoso.com ------192.168.101.2 Site2(RODC)----contoso.com ----

  • Need MOD assistant on linking accounts

    As previewsly stated by others, I am also unable to see anything in my digital library even after being told my order is ready. I have tried the whole reset cookies and passwords (even new passwords) and I am still unable to see anything, even previe