DELETE WHERE sample case that i would like to share with you

Hi,
analyzing a program the other day i got the following hit list in SE30 as TOP 2 and TOP 3 of the most
expensive calls sorted by net time descending.
  Number        Gross =         Net Gross (%) Net (%) Call 
   11.975  23.651.879    15.612.054   12,0    7,9  Loop at IT_126570  
8.698.597   8.039.825  =  8.039.825    4,1    4,1  Append IT_126574
source code excerpt:
REFRESH it_dict[].
it_dict[] = ist_dict[].
DELETE it_dict WHERE charactname  NE pv_charactname
                   AND   language_int = pv_language_int.
it_dict and ist_dict are both sorted tables with a non-unique key with charactname language_int tabix value_char.
Note: The DELETE WHERE is intarnally processed as a LOOP WHERE which APPENDS the the lines
to be deleted to an internal system table which afterwards is used in a system call that does the
delete (not visible). Since ST12 (which i use normally) combines the LOOP and the APPEND to a
single line which shows DELETE as the call i used SE30 here to show all the details.
Now what?
(How) can we optimize it?
How much time can we save?
I will follow up with more details later since there are some interesting things to show i think.
Kind regards,
Hermann

More tests while I haven't deleted the program...
If I keep the first characteristic (and not the one in the middle), the winner is the same (but the 1st case is now slower than the 3rd):
(I had to make small adjustments to correctly use FROM and TO when the characteristic is not in the middle)
Copy + Delete                     5.381  (      2.396  lines )
Loop + Insert                     7.888  (      2.396  lines )
Loop + Append                     2.994  (      2.396  lines )
Copy + Delete From To               509  (      2.396  lines )
Loop + Append From To             1.041  (      2.396  lines )
Loop + Insert From To               691  (      2.396  lines )
Determine From To                   400
If I keep the last one, then option 6 is now clearly the best:
Start (     10.553  lines )                                                                               
Copy + Delete                     5.582  (      1.942  lines )
Loop + Insert                     6.573  (      1.942  lines )
Loop + Append                     3.361  (      1.942  lines )
Copy + Delete From To             1.581  (      1.942  lines )
Loop + Append From To               922  (      1.942  lines )
Loop + Insert From To               566  (      1.942  lines )
Determine From To                   301
Finally, if the characteristic we are looking for is actually not there, then:
Start (     10.553  lines )                                                                               
Copy + Delete                     6.280  (          0  lines )     
Loop + Insert                        14  (          0  lines )     
Loop + Append                         4  (          0  lines )     
Copy + Delete From To               173  (          0  lines )     
Loop + Append From To                10  (          0  lines )     
Loop + Insert From To                 8  (          0  lines )     
Determine From To                     4
Well, sorry for continuing to post on your answered thread. We are ready for the next one..

Similar Messages

  • I have several books on my iPhone that I would like to share with my wife on her iPhone.  Different Apple account.  Can we share the books?  If so, how do we do it?

    So how can I share books on my iPhone purchased from the Apple store with my wife's iPhone? 

    You can only share if she logs in with your account details.

  • I have a PC desktop and an iPad.  I have a large library of PDF documents on my desktop that I would like to sync with my iPad.  I would like to be able to download new PDF's and make edits on existing PDF's on either device and have those edits and new P

    I have a PC desktop and an iPad.  I have a large library of PDF documents on my desktop that I would like to sync with my iPad.  I would like to be able to download new PDF's and make edits on existing PDF's on either device and have those edits and new PDFs synced to the other device.  I would also like to have my library available on the iPad even if there isn't a wifi connection (i.e., not on the cloud).  Is that possible.  I don't mind if I have to purchase a separate product or a product upgrade ect.

    You can't use an external hard drive like you would with a computer.
    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    When you first connect the USB flash drive, you will only see thumbnails of the pics on the iPad; you have to import the pic file to see the full size. With your large library of pics, you will have to do this repeateably and then delete pics so you don't exceed your memory capacity.
     Cheers, Tom

  • I have made "Lock Pattern" which I would like to share with Apple.

    I have made "Lock Pattern" which I would like to share with Apple.

    but
    http://www.apple.com/feedback/

  • I have a 1st gen shuffle and a nano that I would like to use with a new computer. What do I need to do?

    I have a first gen iPod Shuffle with its software installed on a Windows XP computer. I installed the software for an iPod Nano, and was then unable to access my music library with the Shuffle. This is not my main issue that my question is about. I would like to be able to use both of these devices on a new Windows7 computer. What, exactly, do I need to do? (ie - deauthorize my old computer, uninstall or install/reinstall iTunes, etc.) Any advice or help would be greatly appreciated.

    "Do I need to deauthorize my old computer first?" 
    Not unless you want to.  You can have up to 5 computers authorized.
    " And should I install the Nano's iTunes software, since it is newer than the Shuffle's, before syncing?"
    Itunes is itunes.  I don't know what you mean by "Nano's iTunes software".  You need to install itunes.
    "Or, should I just download the most current iTunes software, and then plug in both devices and sync?"
    Yes.
    Hope all goes smoothly.

  • I have a new ipod that I would like to share my itunes library with. Is this possible?

    Can someone help me and give me an idea as to whether or not is possible to have multiple Ipods and a shuffle share the same Itunes library on the same computer.  I attempted to drag the music on my itunes to another IPOD and it will not allow it.  Please help.  Thank you.

    Just plug the iPod in and open iTunes. It will the iPod will show in the devices section of the iTunes sidebar. Click on the iPod go to the summary tab and set you syncing options. You can do this for as many iPods/iPhones/iPads as you like.

  • I am making a project on iMovie and I would like to share with my other group members so they can edit as well, they also have macs is that possible?

    I am making a imovie for a class project in a group. We all need to do work on the project. Can other Macs edit off of the same imovie?

    It's not a practical idea.
    Dedicate one machine in the class to do the project from start to finish. Change the person in the chair.
    You could also use an Apple TV in the classroom and "mirror" your iMovie work on a TV for the class to view.

  • HT201077 I have a shared photo stream on my ipad that I would like to add more recepients. When I select edit there is no list of subscribers and no option to add or delete names, only add photos or delete the stream.

    I have a shared photp stream on my ipad and I would like to share with some addition people. I tried selecting edit but it only gives the option to delete the stream or select photos to share on another photo stream. Is it possible to add more email addresses on an existing stream?

    Open the Photos app.
    Tap the Photo Stream tab.
    Tap the blue arrow...

  • Sun would like your help with the "System Name Already In Use"  error

    A couple of users have reported getting an erroneous "System Name Already in Use" error when re-registering a system after a fresh Solaris re-install. We'd like your help in tracking down this problem.
    The scenario is this:
    * Install Solaris 10 and register with updatemanager,
    * Wipe out the installation and re-install Solaris.
    * re-register with updatemanager.
    The system erroneously reports that the system name is already in use. It is supposed to detect a duplicate registration of the same system.
    We have not been able to reproduce this error in our lab.
    If this has happened to you, would you let us know at [email protected]?
    Here are the things that we would like to ask of you:
    * If you run "updatemanager -debug" if will create a log file /tmp/basicreg<timestamp>.log.
    * Details on the exact hardware you have (make/model/configuration).
    * Details on the steps you took to get to the bad state. REALLY detailed!
    Thanks!
    Based on what we know now, we believe you can work around the issue by either:
    * Changing the host name and re-registering.
    * Creating a different user account and registering the host to that account.
    Some previously-posted workarounds are known NOT to work:
    * Wait 24 hours and try again.
    * Do some "ccr" incantations and try again.

    Hi,
    Can you drop me an email as i am a sun employee and i will be able to check if the swup frontline team have received any support cases on this issue and then we can work with you directly to resolve the issue.
    Scott Wallace

  • Is it possible to save an iPhone back up and access the files later if needed?  I have a string of text sms and iMessages that I would like to save and then delete them from my phone.  Is this possible?

    I have a string of text sms and iMessages that I would like to save and then delete them from my phone, but gain access to them later if I need them.  I prefer to have the string with the date/time stamp vs copying and pasting into a doc or text file.  Is this possible?

    Not unless you buy an app that accesses data from an iTunes backup.  Check in the app store.

  • HT5312 I have a used iMac 21.5 in that i would like to reset the apple id so when I get updates in goes to my id instead of the previous owners id. Which in the case is a relative

    I have a used iMac 21.5 in that i would like to reset the apple id so when I get updates in goes to my id instead of the previous owners id. Which in the case is a relative. How can I do this ?

    The Mac, it's OS and the iLife apps are still associated with the original owners Apple ID.Normally the original owner needs to follow the process to prepare a Mac for selling or giving it to someone else. They need to call Apple Care and request that their Apple ID be disassociated from the Mac, erase the Mac and install the most recent version of OS X that shipped on the Mac, reinstall the iLife apps and deauthorize the Mac from their iTunes account.
    If you have a bill of sale of some sort and can prove the Mac beongs to you, Apple may be able to assist you. Call Apple Care and explain the issue.

  • I have thousands of emails on my Ipad that I would like to delete permanently.  How can I do this?

    I have thousands of emails on my IPad that I would like to delete permanently.  How can I do this?

    Hi
    I know this feature isn't the most intuitive but I found out how to do it all at once.
    Go to the mail box you want the messages deleted from (probably the Inbox of your most used Email Address)
    Tap Edit
    Tap the circle left of the first message on the list to select the first email message
    Put your finger on Move but don't release it!
    With another fingerdeselect the first message so there are no messages selected
    Remove your finger from the Move button.
    Select the mailbox you want the messages to be moved to (probably Trash)
    Hope this helps!
    Taco

  • There are certain files that I would like to delete, however it won't let me.

    I have some files that I would like to delete, however delete is not available. What do I do?

    I'm not sure what you mean. Reader doesn't delete files. It reads PDF files.
    Maybe some more info would help...

  • Around the end of the month I get an alert saying I am nearing the maximum minutes the plan allows.  I check my account and that simply is not the case.  Sure would like to talk to a live human being.

    Around the end of the month I get an alert saying I am nearing the maximum minutes the plan allows.  I check my account and that simply is not the case.  Sure would like to talk to a live human being.

    It's Verizon rounding up and a reminder to refill or pay.  They do this with data too.  It isn't just lag in reporting, it's just the way Vzw does this.  A lot of customers don't watch their usage and just go with the alerts as a measuring tool, and Verizon knows it.

  • There are photos that I would like to delete it on Photo Stream!?! How can I do that???

    There are photos that I would like to delete it on Photo Stream!?! How can I do that???

    You'll need to convert the original source video to MP4 format, import it into iTunes and sync it to the iPad.

Maybe you are looking for

  • E65 and iCal: all-day events

    Whenever I use iSync to sync iCal and my E65, all-day events are sent to the phone as "meetings" that last from from 12:00am to 11:59pm instead of being synced as "notes". I've tried everything I can think of, including syncing to Google Calendars on

  • Trouble looping thru SR to mark as completed with powershell

    Not sure this is actually a SCSM question, but I only seem to have trouble doing this in SCSM PowerShell. PS D:\ps1\Management Scripts> gc D:\ps1\SRs2Close_6.23.2014.txt SR6172 SR6411 SR6159 SR6284 SR6280 SR6298 SR6226 SR6262 SR6307 SR6223 SR6264 SR6

  • Macbook pro - Chromecast - HDTV how to

    Macbook pro - Chromecast - HDTV

  • Function mmodule for payment details

    hello,        is ther any function  module that will retrun the details of paymnet run happened for the current day. where i willl be passing the current date has the input criteria. cheers

  • Maintaining Product relationships in accessories section in product master

    Hi all, We have a requirement  to add the maintenance product in the u201CAccessories section in the Relationships tabu201D of the CRM product master data. Kindly let me know the standard FM/BAPIu2019s or programs can be used to add the relationship