Is this statement efficient?

Is this statement efficient? How to tuning it?
UPDATE INCOMING_MSG_IDX SET STATUS = 5    -- update message status to has read
        WHERE MSG_ID = V_MSG_ID AND
              IP_ADDRESS = V_IP_ADDRESS AND
              DATETIME = V_DATETIME AND
              MSG_TYPE >= LOW_MSG_TYPE AND
              MSG_TYPE <= UP_MSG_TYPE;

jetq wrote:
Is this statement efficient? How to tuning it?
UPDATE INCOMING_MSG_IDX SET STATUS = 5    -- update message status to has read
WHERE MSG_ID = V_MSG_ID AND
IP_ADDRESS = V_IP_ADDRESS AND
DATETIME = V_DATETIME AND
MSG_TYPE >= LOW_MSG_TYPE AND
MSG_TYPE <= UP_MSG_TYPE;
Yes, No, May be, May be Not, actually don't know! Its like asking for a car which is standing in the parking lounge that is it giving a good mileage? Post the execution plan of the query with db and os version for us to comment.
HTH
Aman....

Similar Messages

  • Making select statement efficient

    Can any one suggest how to make this below statement efficient? It is taking quite a long time to run, wht could be the reasons.
    SELECT pbimbedae pbimversb pbimpbdnr pbimmatnr pbim~werks
      pbedpdatu pbedplnmg pbed~meins
      pbed~aenam
      FROM pbim
      INNER JOIN pbed ON pbedbdzei = pbimbdzei
      INTO TABLE I_IDEMAND
      WHERE pbim~werks IN wa_plantsel
      AND EXISTS ( SELECT matnr FROM mara
          WHERE matnr = pbim~matnr
          AND lvorm = '' )
      AND EXISTS ( SELECT matnr FROM marc
          WHERE marcmatnr = pbimmatnr
          AND marcwerks = pbimwerks
          AND marc~lvorm = '' )
      AND pbim~vervs = 'X'
      AND pbed~plnmg > 0 .

    Hi,
    1. First of all the sequence of fields in select query for PBIM & PBED table should be same as database table.
    2. First select the data from mara & marc the fetch data from pbim.
    This should solve ur performnace problem .
    Regards
    Kapil

  • My imac will not load after I enter my password. The only thing I get is the arrow from my mouse on top of a blank white screen.  Can anyone tell me what this is?  I've restarted and turned off several times.  I left it on in this state for 8 hours and

    My imac will not load after I enter my password. The only thing I get is the arrow from my mouse on top of a blank white screen.  Can anyone tell me what this is?  I've restarted and turned off several times.  I left it on in this state for 8 hours hoping it would reload and work.  No luck.

    Hello KCC4ME,
    You may try booting your Mac in Safe Boot, as it can resolve many issues that may prevent a successful login.
    OS X: What is Safe Boot, Safe Mode?
    http://support.apple.com/kb/HT1564
    If a Safe Boot allows you to successfully log in, you may have issues with one or more login itmes (while the following article is labelled as a Mavericks article, it is viable for earlier versions of the Mac OS, as well).
    OS X Mavericks: If you think you have incompatible login items
    http://support.apple.com/kb/PH14201
    Cheers,
    Allen

  • Error in this  statement

    This statement return an SQLException which says:
    Syntax error in INSERT INTO statement
    String mySql_1 = " INSERT INTO MEAL(MEAL_AMT_LOADED)"
    "WHERE MEAL.STU_NUM = '" jtfStNo.getText().trim()
    "'VALUES('"+jtfAmLd.getText().trim()+"')";
    I want the following query statement to allow me to insert a meal amount of a particular student through jtfAmLd into the MEAL table whereby a student must be identified by a student number also to be provided in jtfStNo.
    I'll be glad if you can help me with this statement
    Cool.

    I want to know how am i going to update the second table MEAL which
    contains a foreign key STU_NUM which referenced STUDENT the table which contains STU_NUM as a primary key using the criteria of a STU_NUM.
    Duffymo and DrClap i have tried UPDATE as follows:
    String query = "UPDATE STUDENT,MEAL"+
    "SET MEAL.MEAL_AMT_LOADED = '" + jtfAmLd.getText().trim() +"',"+
    "MEAL.MEAL_REL_MADE = '"+jtfRM.getText().trim()+ "' "+
    "WHERE STUDENT.STU_NUM = MEAL.STU_NUM"+
    "AND STUDENT.STU_NUM = '" + jtfStNo.getText().trim() + "'";
    But it returns an error which says:
    Failed to insertjava.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.

  • ORA-24333: zero iteration count  Cause: An iteration count of zero was specified for the statement Action: Specify the number of times this statement must be executed

    Get the following error from Oracle 
    ORA-24333: zero iteration count
    Cause: An iteration count of zero was specified for the statement
    Action: Specify the number of times this statement must be executed
    Any suggestions on whether is this a Oracle bug or if not what should be set to avoid this failure.

    Hello get this from executing the following.
    Occurs intermitently.
    select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
    Find the MaxLenght(LxVal) returned is null for this query.
    Did google it but says the iterator not initialized. But not the case here
    Thanks

  • How to understand this statement?

    How to understand this statement?
    What is a zero-parameter public constructor
    <key-partitioning/class-name>: Specifies the name of a class that implements the com.tangosol.net.partition.KeyPartitioningStrategy interface. This implementation must have a zero-parameter public constructor.

    It is a public constructor that doesn't take any parameters. See the following simple class.
    public class Platypus
      public Platypus() {} //public constructor with no arguments
    }

  • Whats wrong with this statement????

    String final = "final";
    is there any unusual about this statement??

    its just cant be done. u cant use final as a
    variable name because it's a java keyword. it will
    show an error when compilingYes i just tested a sample program and got following errors:
    C:\temp>javac TestFinal.java
    TestFinal.java:3: not a statement
    String final = "final";
    ^
    TestFinal.java:3: ';' expected
    String final = "final";
           ^
    TestFinal.java:4: illegal start of expression
    System.out.println(final);
                       ^
    TestFinal.java:4: ')' expected
    System.out.println(final);
                             ^
    4 errors

  • Have you heard of Mackeeper? Is this safe & efficient?

    Have you heard of Mackeeper? Is this safe & efficient?

    Avoid like the plague. If you are looking for maintenance see the following:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.

  • Meaning of this statement

    Hi All
    I am new to java , what is the meaning of the following statement
    List<String> command = new ArrayList<String>();
    -Thanks

    This is generics. U need to code a lot in Java before reaching generics.
    But to make it easy for you to understand (assuming you are aware of inheritance),
    ArrayList is a class in java.util which implements the List interface of the same package. So, this is possible. ( i am not going in much detail).
    If you don't know inheritance, and if you are trying to use ArrayList, then don't focus on this statement at the moment.
    Directly make an object of ArrayList and proceed.
    For more help, feel free to email me. See my profile to obtain my email id.

  • Please explain this statement!!!!

    Hi all,
            Can anyone please tell me what is being in this statement :
    server->request->get_form_field( 'actionguid' )
    Kindly reply immediately as this is bit urgent.
    Reards,
    Vijay

    Hi,
    The server->request->get_form_field( 'actionguid' ) statement is to get a value from the request object in the BSP page.
    Give me more details if it does not answere your question.
    Thanks
    Srini Sandaka

  • Imovie is limited to its import formats and does not allow for storing video in any rawformat.  Which means all videos will contain lossy compression applied to the video-.with no way to edit full format video.  Is this statement true?

    Imovie is limited to its import formats and does not allow for storing video in any rawformat.  Which means all videos will contain lossy compression applied to the video….with no way to edit full format video.  Is this statement true? Does iMovie support HD 1080p @ 60 fps?

    Iggy826 wrote:
    …   Is this statement true?
    yes and no!
    using the intended Import from Camera routines, iM converts automatically in its very own AppleIntermediateCodec. so, answer is yes.
    but …
    a) Apple claims , aic is non-lossy intermediate codec. working with proRes in FCPX taught me, there are even less non-lossy-ness codecs
    b) iM offers an Archive feature, which is basically a simple Finder/copy operation which 'clones' your SDcards content into some folder on your harddrive; e.g. you can later use these untouched  'raws' in another editor such as FCPX. so, answer is no.
    c) when you 'override' the import routines by manually re-wrapping mts into a mov container, iM handles the 'native' h264s ... so, answer is no.
    d) adding any effect, transition etc. reduces any interlaced source to 540p. (if you're working with 720p source, res is kept) … so, answer is yes. or, in 720p case, no.
    < Johnny Depp's voice >… savvy?
    Does iMovie support HD 1080p @ 60 fps?
    via Import from Camera? No.
    via re-wrapped mts>>mov? I was told yes, some say no.
    one thing to be kept in mind when talking about these 'issues':
    iM, this 12€, is meant as a CONSUMER toy tool.
    it supports AVCHD vers1 (=no 1080/60p, no >24Mbps, no 3D).
    fingers crossed, we'll see soon some iM/QT/FCPX update for support of AVCHD v2 ........
    the main consumer devices are within the specs, iM supports.
    using professional equipments makes usage of professional software (FCPX, AP) optional.
    sorry for lengthy answer.

  • Hi !? I lost my Iphone 5 and enabled lost mode. But whoever has stolen it already knows my passcode. So is it possible to change my passcode in this state ?

    hi !? I lost my Iphone 5 and enabled lost mode. But whoever has stolen it already knows my passcode. So is it possible to change my passcode in this state ?

    If you enabled lost mode, that means the device did not show up in the tracking system when you logged into iCloud.  If it is offline for any reason, there is nothing you can do to it remotely.  You would have to wait until or if it ever does come back online.
    At this point, I'd assume it is gone.  If the person who has it knows your passcode to swipe to gain access to the contents, then your information is already compromised by now.

  • Why is this statement being repeated?

    import java.util.Scanner;
    class Main {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            System.out.print("Blahdy blah: " + "blah.");
            sc.next();
    }Output:
    Blahdy blah: blah.Blahdy blah: blah.
    I've found that removing the colon fixes this, but could someone please inform me as to why this happens?
    Thank you.

    Ah, nothing changes. I was getting this problem while I was using Scanner, so I expected that the use of it triggered something, but it does not!
    The following code does the same when executed:
    class Main {
        public static void main(String[] args) {
            // Apparently anything after the colon that is not a
            // space or blank character will cause this statement to repeat in NB.
            System.out.print("Blahdy blah: a");
    }This does not happen when using println, just thought I might add that.

  • Is this statement correct?------------QNo.101

    Is this statement correct?
    "You can use a resource plan instead of a consumer group to implement a priority within the plan."

    To enable flashback database mode, the db needs to be in archivelog mode first.
    The other part of this is when you actually use this functionality, both flashback logs and archive/redo logs are used. As always the basics are spelled out in the docu set:
    "When a database is restored to its state at some past target time using Flashback Database, each block changed since that time is restored from the copy of the block in the flashback logs most immediately prior to the desired target time. The redo log is then used to re-apply changes since the time that block was copied to the flashback logs."
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb001.htm

  • Is this statement correct?----QNo.125

    Is this statement correct?Why?
    "During flashback database recovery, archive logs are applied to database."
    If no aechive log, Can flashback database work?
    Thank you!
    Message was edited by:
    frank.qian

    To enable flashback database mode, the db needs to be in archivelog mode first.
    The other part of this is when you actually use this functionality, both flashback logs and archive/redo logs are used. As always the basics are spelled out in the docu set:
    "When a database is restored to its state at some past target time using Flashback Database, each block changed since that time is restored from the copy of the block in the flashback logs most immediately prior to the desired target time. The redo log is then used to re-apply changes since the time that block was copied to the flashback logs."
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb001.htm

Maybe you are looking for

  • Unable to access Essbase Database

    Hi, Following Essbase error is coming when data is fetching from Essbase database from a report: - Failed to open database 'Database1' on server 'URL' Error reported by Essbase. Additional information: Syntax error loading filters - operation cancele

  • Java.io.File and uppercase/lowercase

    Hello, I am running into a weird problem with java.io.File on a Windows system. My program needs to validate a path the user entered. Sometimes, the path will contain a directory name that should be uppercase, but which the user entered in lowercase

  • TS3694 volume button not working

    I updated to 6.0.1 a couple of weeks ago. Immediately I noticed my phone would not pick up my wifi signal at home. It would start searching for a signal and I would have to continually manually selecting my signal every time I return home. Even after

  • Messages not being marked as Read on IMAP account on iMac

    I use the Mail application on my iMac to read my Gmail. I have it set up as IMAP, and it has worked very well for a long time. Recently, however, I noticed that if I read my mail on my iPhone, or my work computer (both of which have the correct IMAP

  • Email Script for php5

    I was running a basic form with Flash 8 and PHP 4.*.* so that customers could email a client of mine. My clients web hoster has since upgraded to PHP 5.2.0 and the form has quit working. Does anyone know what changed in the new version that would aff