Very very imp question plz......reply atleast one step

<b>plz tell me the statements which will be burdon for the databaSe</b>..and to over come tha which statements we should use...fro example INSTEAD OF INNER JOINS WE USE FOR ALL ENTRIES TO UTILIZE DATABASE MUCH MORE EFFECIENTLY PLZ REPLY MY QUESTION WITH GREAT HEART THANK U

Hi,
Performance tuning for Data Selection Statement 
For all entries
The for all entries creates a where clause, where all the entries in the driver table are combined with OR. If the number of 
entries in the driver table is larger than rsdb/max_blocking_factor, several similar SQL statements are executed to limit the 
length of the WHERE clause. 
The plus
•     Large amount of data 
•     Mixing processing and reading of data 
•     Fast internal reprocessing of data 
•     Fast 
The Minus
•     Difficult to program/understand 
•     Memory could be critical (use FREE or PACKAGE size) 
Some steps that might make FOR ALL ENTRIES more efficient:
•     Removing duplicates from the the driver table 
•     Sorting the driver table 
If possible, convert the data in the driver table to ranges so a BETWEEN statement is used instead of and OR statement:
FOR ALL ENTRIES IN i_tab
  WHERE mykey >= i_tab-low and
        mykey <= i_tab-high.
Nested selects
The plus:
•     Small amount of data 
•     Mixing processing and reading of data 
•     Easy to code - and understand 
The minus:
•     Large amount of data 
•     when mixed processing isn’t needed 
•     Performance killer no. 1
Select using JOINS
The plus
•     Very large amount of data 
•     Similar to Nested selects - when the accesses are planned by the programmer 
•     In some cases the fastest 
•     Not so memory critical 
The minus
•     Very difficult to program/understand 
•     Mixing processing and reading of data not possible 
Use the selection criteria
SELECT * FROM SBOOK.                   
  CHECK: SBOOK-CARRID = 'LH' AND       
                  SBOOK-CONNID = '0400'.        
ENDSELECT.                             
SELECT * FROM SBOOK                     
  WHERE CARRID = 'LH' AND               
        CONNID = '0400'.                
ENDSELECT.                              
Use the aggregated functions
C4A = '000'.              
SELECT * FROM T100        
  WHERE SPRSL = 'D' AND   
        ARBGB = '00'.     
  CHECK: T100-MSGNR > C4A.
  C4A = T100-MSGNR.       
ENDSELECT.                
SELECT MAX( MSGNR ) FROM T100 INTO C4A 
WHERE SPRSL = 'D' AND                
       ARBGB = '00'.                  
Select with view
SELECT * FROM DD01L                    
  WHERE DOMNAME LIKE 'CHAR%'           
        AND AS4LOCAL = 'A'.            
  SELECT SINGLE * FROM DD01T           
    WHERE   DOMNAME    = DD01L-DOMNAME 
        AND AS4LOCAL   = 'A'           
        AND AS4VERS    = DD01L-AS4VERS 
        AND DDLANGUAGE = SY-LANGU.     
ENDSELECT.                             
SELECT * FROM DD01V                    
WHERE DOMNAME LIKE 'CHAR%'           
       AND DDLANGUAGE = SY-LANGU.     
ENDSELECT.                             
Select with index support
SELECT * FROM T100            
WHERE     ARBGB = '00'      
       AND MSGNR = '999'.    
ENDSELECT.                    
SELECT * FROM T002.             
  SELECT * FROM T100            
    WHERE     SPRSL = T002-SPRAS
          AND ARBGB = '00'      
          AND MSGNR = '999'.    
  ENDSELECT.                    
ENDSELECT.                      
Select … Into table
REFRESH X006.                 
SELECT * FROM T006 INTO X006. 
  APPEND X006.                
ENDSELECT
SELECT * FROM T006 INTO TABLE X006.
Select with selection list
SELECT * FROM DD01L              
  WHERE DOMNAME LIKE 'CHAR%'     
        AND AS4LOCAL = 'A'.      
ENDSELECT
SELECT DOMNAME FROM DD01L    
INTO DD01L-DOMNAME         
WHERE DOMNAME LIKE 'CHAR%' 
       AND AS4LOCAL = 'A'.  
ENDSELECT
Key access to multiple lines
LOOP AT TAB.          
CHECK TAB-K = KVAL. 
ENDLOOP.              
LOOP AT TAB WHERE K = KVAL.     
ENDLOOP.                        
Copying internal tables
REFRESH TAB_DEST.              
LOOP AT TAB_SRC INTO TAB_DEST. 
  APPEND TAB_DEST.             
ENDLOOP.                       
TAB_DEST[] = TAB_SRC[].
Modifying a set of lines
LOOP AT TAB.             
  IF TAB-FLAG IS INITIAL.
    TAB-FLAG = 'X'.      
  ENDIF.                 
  MODIFY TAB.            
ENDLOOP.                 
TAB-FLAG = 'X'.                  
MODIFY TAB TRANSPORTING FLAG     
           WHERE FLAG IS INITIAL.
Deleting a sequence of lines
DO 101 TIMES.               
  DELETE TAB_DEST INDEX 450.
ENDDO.                      
DELETE TAB_DEST FROM 450 TO 550.
Linear search vs. binary
READ TABLE TAB WITH KEY K = 'X'.
READ TABLE TAB WITH KEY K = 'X' BINARY SEARCH.
Comparison of internal tables
DESCRIBE TABLE: TAB1 LINES L1,      
                TAB2 LINES L2.      
IF L1 <> L2.                        
  TAB_DIFFERENT = 'X'.              
ELSE.                               
  TAB_DIFFERENT = SPACE.            
  LOOP AT TAB1.                     
    READ TABLE TAB2 INDEX SY-TABIX. 
    IF TAB1 <> TAB2.                
      TAB_DIFFERENT = 'X'. EXIT.    
    ENDIF.                          
  ENDLOOP.                          
ENDIF.                              
IF TAB_DIFFERENT = SPACE.           
ENDIF.                              
IF TAB1[] = TAB2[].  
ENDIF.               
Modify selected components
LOOP AT TAB.           
TAB-DATE = SY-DATUM. 
MODIFY TAB.          
ENDLOOP.               
WA-DATE = SY-DATUM.                    
LOOP AT TAB.                           
MODIFY TAB FROM WA TRANSPORTING DATE.
ENDLOOP.                               
Appending two internal tables
LOOP AT TAB_SRC.              
  APPEND TAB_SRC TO TAB_DEST. 
ENDLOOP
APPEND LINES OF TAB_SRC TO TAB_DEST.
Deleting a set of lines
LOOP AT TAB_DEST WHERE K = KVAL. 
  DELETE TAB_DEST.               
ENDLOOP
DELETE TAB_DEST WHERE K = KVAL.
Tools available in SAP to pin-point a performance problem
The runtime analysis (SE30)
SQL Trace (ST05)
Tips and Tricks tool
The performance database
Optimizing the load of the database
Using table buffering
Using buffered tables improves the performance considerably. Note that in some cases a stament can not be used with a buffered table, so when using these staments the buffer will be bypassed. These staments are:
•     Select DISTINCT 
•     ORDER BY / GROUP BY / HAVING clause 
•     Any WHERE clasuse that contains a subquery or IS NULL expression 
•     JOIN s 
•     A SELECT... FOR UPDATE 
If you wnat to explicitly bypass the bufer, use the BYPASS BUFFER addition to the SELECT clause.
Use the ABAP SORT Clause Instead of ORDER BY
The ORDER BY clause is executed on the database server while the ABAP SORT statement is executed on the application server. The datbase server will usually be the bottleneck, so sometimes it is better to move thje sort from the datsbase server to the application server.
If you are not sorting by the primary key ( E.g. using the ORDER BY PRIMARY key statement) but are sorting by another key, it could be better to use the ABAP SORT stament to sort the data in an internal table. Note however that for very large result sets it might not be a feasible solution and you would want to let the datbase server sort it.
Avoid ther SELECT DISTINCT Statement
As with the ORDER BY clause it could be better to avoid using SELECT DISTINCT, if some of the fields are not part of an index. Instead use ABAP SORT + DELETE ADJACENT DUPLICATES on an internal table, to delete duplciate rows.
Regards,
Kumar.

Similar Messages

  • Very Imp.. plz  help

    hi!
    I run most of the hello world (JAX-RPC) examples in j2ee tutorial successfully. Now I want to develop my own web service.
    But I don't know how to write supporting files for asant build (like config-interface.xml, build.properties, build.xml, etc.) also I want to create my own directory structure.
    where can I find tutorial on that?
    please help.
    regards.
    .Mohit

    did you try netbeans 4.X ? check it out

  • Nokia 5530 - A few questions, Plz Reply

    1 - Why are Youtube videos blurry? Can i make them clearer?2 - How do i get Date to show in Home Screen
    3 - Well i have a 4GB Memory Card, and when i try to send something from Computer or from other Phone, it says Memory Full, how do i sort this out?

    1. Are you using the youtube app or browser?
    2. When you are on general profile, the date will be written under the network name. But if you change profiles, it wont be shown. You could put calendar on shortcuts though.
    3. Using bluetooth? By default for all s60 devices (So I understand this is your first s60 device huh, since you dont know this), any message or file sent via bluetooth is going into the message inbox, which uses phone memory by default unless you change the settings to have it set to memory card. So therefore, your phone memory is almost full since the files cant be sent (This could also bethe issue with the youtube thing, low phone memory slows the phone down). Check your available phone memory by going to Menu>Applications>File Manager. For transferring files via bluetooth, before receiving it, go to Message>Options>Settings>Other>Memory in Use. By default it will be saying Chone Memory. Change it to E:Memory card, so that these files sent will go directly to the memory card. Open the file then click on Options>Save (Otherwise it will be left in the message inbox and may not be accessible from apps.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Very urgent urgent plz somebody help me to this question..

    hai plz somebody reply me?
    I have created materialized view for my report.
    but i cant seem them used in sql inspector tab.its directly querried from tables..
    but i want to use materialized view in my report to enhance theperformance..plz help me..
    i checked my privlleges...but i am struggling for this 1week..i could not find where it goes wrong..
    grant CREATE TABLE to <user>;
    SQL> grant CREATE VIEW to <user>;
    SQL> grant CREATE PROCEDURE to <user>;
    SQL> grant CREATE ANY MATERIALIZED VIEW to <user>;
    SQL> grant DROP ANY MATERIALIZED VIEW to <user>;
    SQL> grant ALTER ANY MATERIALIZED VIEW to <user>;
    SQL> grant GLOBAL QUERY REWRITE to <user> with admin option;
    SQL> grant ANALYZE ANY to <user>;
    SQL> grant SELECT ON V_$PARAMETER to <user>;
    the above privellegs have been given to the owner of the EUL.
    But i cant see the usage of materialized view..i have sent plus option,query governor tab-always when summary table visible option..but still not solved?
    plz reply me urgently its very urgent...
    regard
    luxmi

    If Swahili is not on the list and you would like to recommend it to Apple, please tell them at http://apple.com/feedback
    This is the User support forums operated by users just like yourself.  Apple rarely appears here.

  • One very basic question about inheritance

    One very basic question about inheritance.
    Why we need inheritance?
    the benefit of inheritance also achieve by creating instance of base class using it in other class instead of extending the base class.
    Can any one please explain why we are using inheritance instead of creating object of base class????

    SumitThokal wrote:
    One very basic question about inheritance.
    Why we need inheritance?
    the benefit of inheritance also achieve by creating instance of base class using it in other class instead of extending the base class.
    Can any one please explain why we are using inheritance instead of creating object of base class????What did you find out when you looked on Google?
    One example of inheritance comes in the form of a vehicle. Each vehicle has similarities however they differ in their own retrospect. A car is not a bus, a bus is not a truck, and a truck is not a motorbike. If you can define the similarities between these vehicles then you have a class in which you can extend into either of the previous mentioned vehicles. Resulting in a reusable class, dramatically reduces the size of code, creates a single point of definition, increases maintainability, you name it.
    In short there are thousands of benefits from using inheritance, listing the benefits could take a while. A quick Google search should give you a few hundred k if not million links to read.
    Mel

  • Very specific question about iOS 7 and podcasts

    I have a very specific question regarding the playback of podasts under iOS 7.
    Right now, I've still got iOS 5.1.1 (iPhone 4S).
    What I would like to have is a way to play an episode from a podcast that I have not yet finished, and when I double-click the ear-bud's middle button, then I would like to jump (skip) to the episode in the list, even if that episode is from a different podcast.
    Right now, under iOS 5.1.1, I achieved that by creating a smart playlist in iTunes that collects all the episodes from all podcasts with a play count == 0.
    This smart playlist is mirrored to the iPhone.
    It works very well.
    It seems to me that something like that is not possible under iOS 6, so I skipped that.
    My question now is whether I can acheive this under iOS 7.
    I would be most grateful if some kind soul could shed some light on that for me.
    Best,
    Gabriel.

    Hi Larry,
    Thanks very much for posting a reply.
    I do absolutely intend to print a test copy first - but thanks to your advice at least know the spine is going to be ok!
    I didn't realize that method would give me a nice landscape image of the unbound cover - I'd mistakenly remembered that it gave only one page at a time for front and back.
    Thanks for helping out.
    Best,
    Marco

  • If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question

    If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question. Trying to hold out as long as I can, but purchasing an iPhone for Christmas and new iMac next year when warrently expires.

    Thank U very much for the quick reply, I wanted to upgrade this weekend, but still on the fence. I can live with the software that is not compatible, they are on another compuetr, just didn't want the obvious stuff to stop working.

  • Possibly a very basic question but I have set up a spread sheet in Numbers and have viewed help videos but I can't get it to give me sums for the columns I highlight.  Keeps coming up with the figure zero.  I have version 09 2.3(554). Can anyone help

    Possibly a very basic question but I am going nowhere without a solution.  I have set up a spreadsheet in Numbers but it won't give me sums for chosen columns. I  have viewed the run through videos and used the formula but nothing happens apart from giving a figure of zero or a red arrow.  The sum icon in the bottom left hand section of the window does not highlight or show any total as I understand from the video that you can drag whatever total is here onto the relevent position on your spreadsheet.  I have Numbers 09 version 2.3 (554). Can anyone advise. Thanks.

    Hi Sohojools,
    To sum a column, use a formula such as this one in Cell A6
    Type this in a cell below your data:
    =SUM(A2:A4) or whatever range of cells you want to sum. The easy way is to type:
    =SUM(
    and then drag or shift-click to select the range of cells. Close the formula with a final bracket ")".
    The sum icon in the bottom left hand section of the window does not highlight or show any total
    To see the sum (and other simple statistics) in the bottom left, select a range of cells. That tells Numbers which cells you are refering to.
    The videos are good, but the Numbers'09 User guide, and the Formulas and Functions User Guide are better. Download them from the Help Menu in Numbers.
    Regards,
    Ian.

  • HT4753 I have a very simple question: how do I view where Lion has autosaved my current version to (without the convoluted route of using finder)? In days gone by i'd simply use the save as function to see where it was being saved.

    I have a very simple question: how do I view where Lion has autosaved my current version to (without the convoluted route of using finder)? In days gone by i'd simply use the save as function to see where it was being saved.

    It's actually even easier than using Save As to see the full path to the currently open document. Just do a "Secondary click" on the document title in its window's title bar.
    Like you, I relied upon Save As my whole life to check a file's location and considered it a must-have capability. Turns out it's even faster to use the single-click method to reveal the full path to the open document. It displays the entire path to the current document starting from the level of your Mac, and works for files stored on drives as well as iCloud.
    If you're not sure how to do a secondary click, go into System Preferences, select Trackpad, Point & Click to find the current preference for secondary click on your Mac. If you happen to have a mouse with more than one button, it's probably the right button. As a trackpad user, I check the box to "Click or tap with two fingers," so a simple two finger tap on the title of an open document reveals its full path. This feature actually has been around for a very long time.
    Note that this is not the same thing as the Autosave and Versions menu, which is exposed using a little drop down triangle to the right of the title. There is no visual clue for the presence of this feature - you just have to know it's there, probably because this feature goes all the way back to pre-OS X days.

  • Very basic questions on text/email

    So I'm now convinced - with the 3.0 OS and the 3GS handset, the iPhone finally does all I want it to do and I'll be buying my first one in a couple of weeks.
    Before I do, though, I have a couple of very basic questions:
    1. Does predictive text only work in the SMS app, or does it work in the apps for email, writing notes, etc?
    2. Can you turn the predictive text off? (I find it wildly irritating, because I know far better what words I want to write than a pesky phone does!)
    3. Having email sent to a mobile is a whole new world for me! Do I need to subscribe to MobileMe at £££ per month, or is there another way of having email from my three accounts forwarded to my mobile?
    Hope someone can help!
    Cheers,

    1. Does predictive text only work in the SMS app, or does it work in the apps for email, writing notes, etc?
    It works with Safari, the Mail client, the Notes app, and with the SMS app.
    2. Can you turn the predictive text off? (I find it wildly irritating, because I know far better what words I want to write than a pesky phone does!)
    Yes.
    3. Having email sent to a mobile is a whole new world for me! Do I need to subscribe to MobileMe at £££ per month, or is there another way of having email from my three accounts forwarded to my mobile?
    You can access any IMAP or POP account with the iPhone's Mail client, and access multiple email accounts. I currently access to email accounts with the iPhone's mail client - my MobileMe account, and a business POP account. You can access all 3 of your email accounts with the iPhone's Mail client.

  • HT3702 Hi I m very much frustrated bcoz frm last one month I m trying to pay my bill regarding this orderMH0608K27D but all the time it declined I don't know what's wrong bcoz frm last one yr I m purchasing frm same id n paas word n I also tlk yo my bank

    I am very much frustrated bcoz frm last one month my payment is not accepted plz check it out n help me my all debit card details r same n I purchasing frm last one yr but why this time I m facing this problem my order no is MH0608K27D plz help me

    Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
    http://support.apple.com/kb/HT5552
    You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
    http://www.apple.com/emea/support/itunes/contact.html
    Regards.

  • Script Language Translation - Very Common Question, but unable to resolve !

    Hi Gurus,
    I know this is very common question, but I am stuck, unable to get this one resolved.
    Need to translate sap script "TEXT SYMBOLS" from "English" to "French".
    Have maintained language translation text symbol values in table TTDTG.
    But when i login through French language, these are still getting printed in English !!
    Any Pointers to resolve this will be of great help.
    Many Thanks,
    Madan

    hi
    1) Copy the Script into FR language and then change the Corresponding ENGLISH text to FRENCH text.
    2) Pass ur logon langauge   in the OPEN_FORM FM  Import parameters
                                                                                    LANGUAGE = sy-langu.
    so that whatever is ur logon langauge it corresponding Form will be called.
    surya

  • Entities not showing Contribution - very basic question

    Hi guys,
    Apologies for this very basic question - I'm very new to Hyperion, with just a weeks training! Anyway I'm building a basic model and have noticed that in the Value dimension my entities are not rolling up to the [Contribution Total]. This means that Entities do not roll up!!
    One suggested issue was that I needed a Sub Consolidate in the Rules, however I've set the attribute "ConsolidationRules" to be = to N. In the documentation this is defined as "N to use the default consolidation and eliminations."
    Wondering is there anything else that is needed to use default consolidations, or do I need to create some Rules??
    Thanks
    G

    Why do you think it is not rolling up? If your Consoldiation Rules are set to 'N' you do not need rules.
    Make sure your accounts are set to IsConsoldiate. Make sure you are viewing a 'Parent.Child' at Contribution Total.

  • Very stupid question -- how do I delete old word processing documents??

    I have a zillion old word processing documents stored away. Many of them are old school projects my kids did, and I would really like to clean house. But I can't figure out how.
    Going to "File," clicking on "Open" to get the list of all documents, then highlighting a document and hitting "delete" (which is pretty much what you do in WordPerfect) does NOT do the job. Nothing happens.
    I ask this very basic question because the Appleworks "Help" feature on my machine doesn't give an answer, and neither (as far as I can tell) does the pdf Appleworks manual on the Apple site. I'm at a loss. Can anyone give me a hand with this?

    Deleting files from a dialog whose purpose is to open
    them is not the Mac way. Simply locate the files in
    the Finder and drag them from their folder to the
    trash.
    Thank you so very much! I've worked in Appleworks on one computer or another for two years and have exhausted every research item I had trying to figure what should be a very simple action. AppleHelp sure doesn't address it nor does The Missing Manual for Appleworks. How simple - but how impossible to know unless someone told you. And, yes, this is the Mac way.
    Thanks again!

  • Very newbie question: SNASW on Catalyst

    Hi to all,
    I've got a very basic question on snasw.
    Can SNASW be implemented on a Catalyst 6500 in any way, for example using a particular model of supervisor engine?
    Thanks.

    Hi Marco,
    No, the SNASw feature is not available on any version of the Catalyst 6500. The reasoning is that SNASw is heavily process bound, the Catalyst 6500 is optimized for IP packet forwarding, and combining the two is too great a compromise. We suggest using a one armed router attached to the Catalyst 6500, so that the SNA processing is not in the direct path of the IP packet forwarding.
    Rgds, Dan

Maybe you are looking for

  • Can I copy and paste pictures from laptop (windows 7) to ipad

    I had to remove pictures taken with iphone (photo stream)  to make room to load ISO8.  Copied them to my Toshiba laptop but now trying to copy & paste back to ipad but it is not working.

  • How place an LD_PRELOAD bash command into a .desktop file (LXDE)

    To enable video in Skype with my webcam I must launch skype the following way: LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype To get that command done from my LXDE menu I tried to edit the skype.desktop file and place that line after the "Exec" deskt

  • Broken buttons in IE 9

    Hi, i built in APEX 4.2.0.00.27 an application with theme 'Simple Gray - 9'. With Safari 6.0.2, Firefox 17.0.1 and Internet Explorer 8.0 all the buttons are displayed fine, but in Internet Explorer 9.0 at Windows 7 they are all displayed broken at th

  • How to retrieve data from the Database after deleting rows from VO ?

    Hello, I am using Jdeveloper 11.1.2.1.0 I have a master and a child . So according my use case when a value in the master vo changes the corresponding child has to be deleted. but when i change back to any other value i want to undo the delete operat

  • Ip address help

    Hi, I am at a friends house and we both want to play this game online, but it's really slow because we are both using the same ip address. I was wondering how I could get a second ip address. He tells me the company never gave him a second one, so i'