Performance tuning SELECTs:  Can I force a TRUE db read every time?

Good day everyone!
I've been programming in ABAP for almost 6 years now, and I'd like to begin learning more about performance tuning with respect to database performance.
More specifically, I'm testing some things in a particular SELECT in a report program we have that is timing out in the foreground because of the SELECT.  When I first run the program, the SELECT goes against the database, as we all know.  Subsequent runs, however, use the buffered data, so the response is a lot quicker and doesn't really reflect that first, initial database read.
Am I correct in assuming that I should be testing my various approaches and collecting performance runtimes against that initial, "true" database read?  If that's the case, is there any way I can force the system to actually read the database instead of the buffered data?  For those experienced with this kind of performance analysis and tuning, what's the best approach for someone very new to this area such as myself?
Thank you,
Dave

Hi Dave and Rob,
Just my two cents (and yes, I know this is already answered, but..).
I think you might be confusing 2 things: one is SAP buffering, and another one is caching at other levels (database, operating system, etc).
From what I understood Rob was talking mainly about SAP buffering. In that context it is true that if there is a first execution that loads the buffers (for example, some not so small fully buffered tables) then that is an atypical execution, and should be discarded. In real life you will never have execution times like those, except maybe on the very first execution on a monday morning.
Another thing is database caching. If you execute a report twice with exactly the same parameters then you might not be actually making physical reads in the second execution. This second execution will be very fast, but that will not be simulating real life: no user wants a report to be fast the second time you execute it with exactly the same parameters.
To avoid this in Oracle you can empty the so-called SGA, but that is not so useful and it will probably not get you closer to what happens in the real life.
So what to do? In doubt, measure it several times, with different parameters, and probably exclude the extreme values.
Regards,
Rui Dantas

Similar Messages

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • How can I force iTunes to make a new time-stamped bacukp?

    How can I force iTunes to make a new time-stamped bacukp which it won`t replace with a next one? I would like to backup my iPhone as it is and erase some stuff from it now but also I want to be able to get it back in the future.
    Thanks

    Don't think you can.  Your best bet is to copy the backup you want to keep to a different location to prevent it from being overwritten.  You can later return it to it's original location and iTunes will recognize it and make it available to restore from.  Your backup(s) will be located at one of the following locations:
    Mac OS: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • When I go to a particular website I selected the wrong thing on the login now every time I tried to go to that site it redirects me to my search menu

    When I go to a particular website I selected the wrong thing on the login now every time I tried to go to that site it redirects me to my search menu and can't find the site.
    this is the site i want to go to --- https://delphisso.am.joneslanglasalle.com/idp/startSSO.ping?PartnerSpId=360facilityprod
    And this is the site it redirects to --- https://support.mozilla.org/en-US/questions/new/desktop/other/form?search=When+I+go+to+a+particular+website+I+selected+the+wrong+thing+on+the+login+now+every+time+I+tried+to+go+to+that+site+it+redirects+me+to+my+search+menu+&step=aaq-question

    It sounds as if maybe you have just bookmarked the wrong thing.
    Probably the link you give in your post works if so use and bookmark that.
    If necessary clear cookies and cache and start again from
    * https://authn.joneslanglasalle.com
    See also
    * Reloading using Ctrl+F5 forces a reload without using the existing cache or see [[How to clear the Firefox cache]]
    * [[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]_delete-cookies-for-a-single-site
    * If you have recorded the wrong login details you can force Firefox to ''forget'' about a site. But be careful it will lose also lose history and bookmarks for that site. <br /> [[Remove websites from the Awesome Bar suggestions#w_clearing-all-items-for-a-single-site]]_clearing-all-items-for-a-single-site

  • How can I stop my nano from syncing every time I do something?  Sometimes it takes overnight to complete the sync.

    How can I stop my nano from syncing every time I do something?  Sometimes it takes overnight to complete the sync.

    Check your sync settings on the Music and other tabs. Personally I untick the box that says "Open iTunes when this iPod is connected" and under Edit > Preferences > Devices I tick the box that says "Prevent iPods, iPhones, and iPads from syncing automatically". This means that I get to choose and, if necessary, edit the content selections and then start the sync only when I'm ready.
    tt2

  • How can I save to the same map every time when printing pdfs?

    How can I save to the same map every time when printing pdfs?
    Finder points to the document map even when I chose a different map recently.
    I often print series of pdfs from the print dialog box, I'd like to choose the map to save to and then have all subsequent pdf prints automatically directed to the same map until I decide otherwise.

    that link seems to be broken right now:
    403 Error - Forbidden  - No cred, dude.

  • I can't seem to update my software, every time I do it says that there is a problem and to close everything that is open. Once I close everything it still doesn't work. How do I get it to complete?

    I can't seem to update my software, every time I do it says that there is a problem and to close everything that is open. Once I close everything it still doesn't work. How do I get it to complete?

    Make sure there's enough free space on the startup disk to install software updates...
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac Guides

  • I recently updated to Firefox 8 and ever since I have done that, I can't get it to open. Every time I click on the icon on my desktop to open it, it crashes. What can I do to fix this?

    I recently updated to Firefox 8 and ever since I have done that, I can't get it to open. Every time I click on the icon on my desktop to open it, it crashes. I have tried all the steps in the Firefox crashes article and I can't figure out what is wrong. How can I fix this?

    please install latest version of Roboform 7.6.2 and try
    * www.roboform.com/support/news

  • Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    You can't. Why on earth would you attempt to manage 2500 emails with setting up a folder structure or some means of doing so? Simply keeping them in an single inbox is not realistic, no matter what email client you use.

  • HT201210 (The iPhone "Named" cannot be restored at this time because the iPhone software update server could not be contacted or is temporarily unavailable.) can anyone help me with this issue, every time i try to restore it will come up like this error m

    (The iPhone "Named" cannot be restored at this time because the iPhone software update server could not be contacted or is temporarily unavailable.)
    can anyone help me with this issue, every time i try to restore it will come up like this error message.

    Restore the iPhone when connected to iTunes by cable.
    Still the same TS1275?
    Is your iPhone jailbroken?
    Or
    Has your computer ever been used to jailbrake or downgrade (Tinyumbrella) any iPhone?

  • The hard drive on my MacBook died and I had it replaced. I can't locate my website files and every time I try to open my idisk it looks for a name and password (even reset my apple id as prompted) I keep being told that it's the wrong name or password?

    The hard drive on my MacBook died and I had it replaced. Now I can't locate my website files and every time I try to open my finder/idisk it looks for a name and password (even reset my apple id as prompted) I keep being told that it's the wrong name or password? Any suggestions out there

    Arty ~ Welcome to the Support Communities. iWeb can't import/open published HTML/media files on your iDisk. iWeb can only open its key Domain file which contains your site data — it's usually located here:
    ...If you don't have a backup of your Domain file (e.g. via Time Machine), paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWeb_Backup_retrieve.html
    Also this thread may help:
    Hard Drive replacement causes new/unknown user password?

  • My wife and i just bought a portable storage so we can put our pictures on it but every time we plug it in its, says it needs to be reformated ? plz help to figure out

    my wife and I just bought a piortable storage so we can store our pictures and videos but every time we plug it in it says we have to reformat it. We are using a MAC, please help?

    Yes, it has to be formatted as HFS Extended (Journaled). You can do this in Disk Utility.

  • Can not get connected to my WIFI, every time I get connected it take me to a blank screen, can not get connected to my WIFI, every time I get connected it take me to a blank screen

    can not get connected to my wifi, every time I get connected it take me to a blank screen

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • HT4623 I still can't update, i get error 3252 every time, after over 500mb is downloaded, not happy to waste all the data i could use for other things

    I still can't update, i get error 3252 every time, after over 500mb is downloaded, not happy to waste all the data i could use for other things.
    is there another way i can download the update? it just never work, tried multiple time

    The most common causes are:
    Your antivirus, firewall or router security is blocking access to Apple's servers - try temporarily disabling them - if you have Kaspersky this is definitely the problem
    At some time in the past you used this computer to jailbreak, unlock or otherwise hack ANY iPhone, iPod Touch or iPad - if this applies to you your hosts file is corrupt and you will have to edit it and remove any lines that contain "gs.apple.com"

  • How can i activate my ipad mini? every time the error message is not going there. and the version has expired.

    how can i activate my ipad mini? every time the error message is not going there. and the version has expired.

    Try this link for activation problems ...
    http://support.apple.com/kb/ts3424
    If you had iOS 7 BETA installed, just go to developer.apple.com and log in using your developer account.  There are discussions about this issue.  Otherwise...  for non-developers, I'm afraid you're on your on.  Use Google.

Maybe you are looking for