Is there any better way for updating table other than this?

Hi all, I need to update a row in the table that require me to search for it first (the table will have more than hundred thousands of row). Now, I am using a LOV that will return the primary key of the row and put that primary key to DEFAULT_WHERE property in the block and execute query command to fetch the row that need updating. This works fine except that it require 2-query-trip per update (the lov and the execute_query). Is there any better way to doing this? This update is the main objective for my application and I need to use the most effective way to do it since we need to update many records per hour.

Thanks Rama, I will try your method. Others, how to query row instead of primary key? I thought that querying primary key is faster due to the index?
BTW, what people do if you need to update a table using Form? I have been using the LOV then execute query since I first developing form. But I am building a bigger database recently that I start worrying about multiple query trip to dbms.
FYI my table will have up to million rows on it. Each row will be very active (updated) within 1-2 weeks after it creation. After that it will exist for records purposes only (select only). The active rows are probably less than 1% of all the rows.

Similar Messages

  • Is ther any alternative solution for music downloads other than iTunes

    Plz suggest me if there is any other service out there that provides music download service other than iTunes.
    One with DRM-Free & Monthly subscription would be awesome..!
    Thanks in advance.

    Okay, in removing duplicate posts, these got pulled. Here they are...
    <hr width="95%">
    StarDeb55 Posted: May 29, 2007 9:14 PM
    Kirk, I'm almost certain that any Napster downloads have DRM on them. 2nd problem is that Napster doesn't work for a Mac.
    The forums are having problems as you can see. When you post it is taking over 30 minutes to appear in the thread at the moment, so it's really not necessary to re-post.
    <hr width="95%">
    Kirk Boragine Posted: May 29, 2007 9:32 PM
    StarDeb55
    My mistake. I've been happily listening to their streams. The subscription service does not work for Macs, yet. Sorry to all for the post(s).
    [ sorry about that, Nubz N.]
    PM G5, PM G4, iPods   Mac OS X (10.4.9)   Mac OS 9.2.2

  • How to find out whether my Iphone 3Gs is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its OS to OS 5 even if my phone is "made" unlocked ? how to up gared its OS ? are there any better ways to do it ?

    How to find out whether my Iphone 3Gs (OS version 3.1.3) is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its current OS 3.1.3 to OS 5 even if my phone is not officlially unlocked ? how to up grade its OS ? what are there any better ways to do it ?
    Thanks,
    PRANAJ

    Depends wher you obtained the iPhone from and it's original supplier
    If the iPhone is an authorised unlock ( approved by the carrier) or was
    purchased from Apple as an unlocked iPhone  updating the iOS
    will have no effect on the iPhone and it's lock status
    HOWEVER if the software has been tampered with to remove the lock,
    updating the iOs will lock the iPhone back to the original carrier who holds the lock
    To find out the status of your iPhone  you could call Apple support
    and they may tell you if the iPhone is locked or not and if it is which carrier

  • Is there any better way to test an agent?

    Every time when I changes some code in the agent, I have to restart the domain to load the new class file. I tried the reload the agent from the Oracle Enterprise Manager, but it is not working. The old agent is still going on. It gives me many troubles since I can't start the SMB server from Window 2000 terminal console. I have to go to the computer room to start SMB natively. Is there any better way to test an agent or start the SMB server in the Window 2000 terminal console?
    Your help will be greatly appreciated!

    Jailcorder requires a jail broken iDevice to work. While it is not illegal to jail brake your iPhone in the US it is illegal to jail break an iPad.
    If you do that you will not be able to use these board for help as the discussion of anything relating to a jail broken iDevice is against the TOU and the hosts will remove your posts
    In addition looking tha Jailcorder it seems it has not kept up with Apple. It doesn;t  work Xcode 5 and  IOS 7.
    On final thing to keep in mind a jail broken device behaves differently then one that is non jail broken. So even of you test with Jailcode you will still need to go through testing with a non jail broken device before submitting.
    All in all if you are serious about developing for IOS it would seem the better course is to get the Developer account now.
    regards

  • Is there any possible way for Apple to resend the activation email for iMessage?

    I wasmad due to something that had happened, so I decided to turn iMessage off on my phone. I went to turn it back on and it said waiting for activaion. I went onto my email, and of course, there was no email. I am currently stuck sending iMessages from my Apple ID. Is there any possible way that Apple can resend and activation email or....?

    I think you are mistaken.
    I have heard of no such e-mail.
    iOS: Troubleshooting FaceTime and iMessage activation

  • Any JPA features for updating table metadata without loosing existing data?

    Hi there,
    I'm having a database with live data in it.
    Now i have to change some tables (add columns, etc.). How can i do this without using drop-create-schema mechanics?
    Do i really have to change my entity classes first, change schema creation to just create-schema so that only new tables are created automatically and finally have to put all the "alter table" stuff manually?
    Is there any better solution?
    Thanx in advance

    no need, you can add columns using alter table command.
    The table schema change will not affect your entities.
    stop the application.
    change the table columns.
    start application having new entities.
    let me know

  • Is there any System setting for Update statement

    Is there any setting for update statement related to implicit commit because Update statement in my code behaves differently in different systems.
    My code is
    Data:  it_eaus like eaus occurs 0 with header line,
            wa_eaus type eaus.
    select * from eaus into table it_eaus where auszbeleg = '000000000001'  and storausz = 'X'.
    if sy-subrc = 0 .
    wa_eaus-aedat = ''.
    wa_eaus-aenam = ''.
    wa_eaus-storausz = ''.
    modify it_eaus from wa_eaus transporting aedat aenam storausz where auszbeleg = '000000000001'.
    update eaus from table it_eaus.
    endif.
    Data:  it_eausv like eausv occurs 0 with header line,
            wa_eausv type eausv.
    select * from eausv into table it_eausv where auszbeleg = '000000000001'  and storausz = 'X'.
    if sy-subrc = 0 .
    wa_eausv-aedat = ''.
    wa_eausv-aenam = ''.
    wa_eausv-storausz = ''.
    modify it_eausv from wa_eausv transporting aedat aenam storausz where auszbeleg = '000000000001'.
    update eausv from table it_eausv.
    endif.

    Hi
    It isn't an alternative way: u can only explicit the COMMIT just as I said before:
    Update DBTAB set COL.
    COMMIT WORK.
    Anyway just I said before the debugger can execute a COMMIT, from SAP help:
    The New Debugger can run in exclusive and non-exclusive mode. Exclusive mode means that the application that is being analyzed exclusively occupies a work process of the application server during debugging. In non-exclusive mode, the Debugger functions are limited. In non-exclusive mode, after each Debugger interaction, the system requests a roll-out in the application. Therefore, an implicit database commit must be executed. This has the following consequences:
    u25CF      Debugging is not possible between the statements SELECTand ENDSELECTbecause the database cursor needs to be closed when using an implicit database COMMIT statement.
    In this case, program execution is terminated.
    ·        Debugging is not possible for conversion or field exits.
    ·        Due to the implicit database commit, inconsistent datasets can occur in the database.
    For this reason, non-exclusive mode is not possible in productive systems.
    Max

  • Is there any better way of optimizing memory?

    Hi Friends!
                      I am new to Labview and need some help. In a VI sescibed below I would like to know about optimizing the memory.
    Problem: Needs to take the values of 7 physical quantities for three different time intervals. Each physical quantity has individual elements(which are clusters)  whose number actually depends on the user input ( can be of any number).
    What I have done: I had first constructed an
    1. Array(Let it be array1 for discussion)  of three elements(For three time intervals)  each element is a cluster(Let be Level 1 Cluster)
                    2.Cluster(Level1) has 7 arrays(Let them be Level 2 arrays) to represent 7 physical quantities
                From the concepts of arrays in the C each element of the array occupies same memory space. But does this concept applicable here. As I have elements in a cluster(level1) as arrays(Level 2). Each one of the array(Level2) could be of different size depending on user input.
    If there is another way to handle them please help me with ur valuable suggestion.
    Siddhu.

    I don't quite understand why optimizing memory here is required as the
    data set does not seem very large.  That being said, clusters use
    (relatively) a lot of memory, and nested arrays/clusters are generally
    considered poor programming.  It seems to me that this can be
    handled with a 3D array (much more memory efficient):  3 pages for
    the time intervals, 7 rows for the physical quantities and an
    indeterminite number of columns for the individual elements.  How
    to handle the array depends on what are valid values for the individual
    elements.  If the data type is numeric and 0 is not a valid user
    input value, then it's easy.  Just build the array row by
    row.  Each row will have the number of columns equal to the
    largest number of individual elements entered.  Data that has not
    been entered by the user will be 0.  For example, at time interval
    1:
    PQ1: 9 2 7 4 1 8
    PQ2: 8 7 2
    PQ3: 1
    PQ4: 4 6 8 2
    PQ5: 2 3 4 5 6 7 8
    PQ6: 4 2 7 9
    PQ7: 2 4
    The first page of the array would be:
    9 2 7 4 1 8 0
    8 7 2 0 0 0 0
    1 0 0 0 0 0 0
    4 6 8 2 0 0 0
    2 3 4 5 6 7 8
    4 2 7 9 0 0 0
    2 4 0 0 0 0 0
    If the data type is not numeric or 0 is a valid value, I would
    initialize a 3D array that is 3 X 7 X (something larger than the max #
    of individual elements) with some sort of invalid value.  Then,
    as  the user inputs individual elements, replace the appropriate
    array element.  This also has the advantage of creating the array
    ahead of time so LabVIEW will not have to create any memory buffers.
    Hope this helps.
    Dave.
    ==============================================
    David Kaufman
    LabVIEW Certified Developer
    ==============================================

  • Is there any purging programs for WF tables?

    I'm looking for purging programs to purge the WorkFlow tables,
    Is there any of those available?

    Hi,
    Yes, there is. Concurrent "Purge Obsolete Workflow Runtime Data" under System Administrator.
    Regards,
    Ketter Ohnes

  • Is there any better way to refresh?

    Hello
    I would like to know if anyone here has a better solution for refreshing components like JPanels. I'm developing an application which uses slow algorithms to draw the points on them. It would be absurd to call these methods again to simply refresh these components (ex: when the user minimizes or resizes the component), just as absurd as it would be to put the slow algorithm code in the paint(Graphics g) method.
    The solution I'm using now is to save the coordinates and attributes of the points the program needs to draw in an array or some other data structure, so that the program can easily call a refresh method (which draws the points from the information store in these arrays).
    But, since I'm using many (slow) algorithms, and since each plot has it's own particularities, I end up creating big refresh methods, even creating classes specifically to refresh components!
    I was wondering if it would be possible to simply copy the image of a component in a given time, so that I could just repaint it on the component whenever it's necessary (i.e, when the component listeners called it). Is it possible?

    I think want you're wanting to do is just a simple double-buffering?
    So, the first time your component is asked to paint itself (you should override paintComponent() rather than paint(), by the way), do this:   private BufferedImage image = null;
       public void paintComponent(Graphics g) {
          if (image == null)
             image = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_RGB);
             Graphics imageG = image.createGraphics();
             // TODO: paint your component onto 'imageG'
          g.drawImage(imageG, 0, 0, null);
       }You may also want to reset 'image' to null if the component changes sizes.

  • HT4759 is there any better way you can track stolen iphone 5 and iphone 5s rather than find my iphone?

    i have lost iphone 5 and iphone 5s within 4 month, its real sad coz there is no way i can track them, have been using icloud (find my iphone) for all these time but it doesn't show nothing helpful rather than my iphones are offline. i need help on this please.....

    Find my...is the only way to track a device.
    Barry

  • Is there any chance/way for an ipad2 bought in UAE to have a facetime application?

    hi everyone! hoping you can share some ideas or help me with my query.
    much appreciated.

    There is no way to have FaceTime on that device.

  • Is there a better way to stop a Method than Thread.stop()?

    First my basic problem. In one of my programs I am using constraint solver. I call the constraint solver with a set of constraints and it returns a Map with a satisfying assignment. In most cases this works in acceptable time ( less than 1 second). But in some cases it may take hours. Currently I am running the function in a Thread and using Thread.stop(). This look like that:
         public Map<String, Object> getConcreteModel(
                   Collection<Constraint> constraints) {
              WorkingThread t=new WorkingThread(constraints);
              t.setName("WorkingThread");
              t.start();
              try {
                   t.join(Configuration.MAX_TIME);
              } catch (InterruptedException e) {
              if(t.isAlive()){
                   t.stop();
              return t.getSolution();
         }where t.getSolution(); returns null if the Thread was interrupted.
    Unfortunately this sometimes crashes the JVM with:
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006dbeb527, pid=5788, tid=4188
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode windows-amd64 )
    # Problematic frame:
    # V  [jvm.dll+0x3fb527]
    # An error report file with more information is saved as:
    # F:\Eigene Dateien\Masterarbeit\workspace\JPF-Listener-Test\hs_err_pid5788.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #Does anyone knows a better way to do it?
    Thank you in advance.
    Note 1: the Constraint solver is a Third Party tool and changing it is unfeasible. (I have tried it already)
    Note 2: Using Thread.stop(Throwable t) only chances the error message.

    In case somebody have the same problem here my code which solves the problem. Note it requires to parameters and the result to be serializable.
    The Class which starts to Process:
    public class Solver{
         public Map<String, Object> getConcreteModel(
                   Collection<Constraint> constraints) {
                   try
                        Process p=Runtime.getRuntime().exec(...); //do not forget the classpath
                        new TimeOut(Configuration.MAX_TIME, p).start();
                        ObjectOutputStream out=new ObjectOutputStream(p.getOutputStream());
                        new ErrReader(p.getErrorStream()).start();//not that std.err fills up the pipe
                        out.writeObject(constraints);
                        out.flush();
                        ObjectInputStream in=new ObjectInputStream(p.getInputStream());
                        return (Map<String, Object>) in.readObject();
                   catch(IOException e)
                        return null;
                   } catch (ClassNotFoundException e) {
                        //should not happen
                        return null;
         // For running in a own process
         static private class TimeOut extends Thread
              private int time;
              private Process p;
              public TimeOut(int time, Process p)
                   this.time=time;
                   this.p=p;
              @Override
              public void run() {
                   synchronized (this) {
                        try {
                             this.wait(time);
                        } catch (InterruptedException e) {
                   p.destroy();
         static class ErrReader extends Thread
             InputStream is;
             ErrReader(InputStream is)
                 this.is = is;
                 this.setDaemon(true);
             public void run()
                 try
                     InputStreamReader isr = new InputStreamReader(is);
                     BufferedReader br = new BufferedReader(isr);
                     String line=null;
                     while ( (line = br.readLine()) != null)
                         System.err.println(line);   
                     } catch (IOException ioe)
                         ioe.printStackTrace(); 
    }And the class which executet the Program
    public class SolverProcess {
          * @param args ignored
         public static void main(String[] args){
              try {
                   ObjectInputStream in =new ObjectInputStream(System.in);
                   SolverProcess p=new SolverProcess();
                   p.constraints=(Collection<Constraint>) in.readObject();
                   p.compute();
                   ObjectOutputStream out=new ObjectOutputStream(System.out);
                   out.writeObject(p.solution);
                   out.flush();
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              //System.err.println("solved");
              System.exit(0);
         private Map<String, Object> solution=null;
         private Collection<Constraint> constraints;
           private void compute()
    }

  • Is there no better way to mount a disk than using Disk Utility?

    When an unmounted disk needs mounting, it's kind of a pain to have to load an app (Disk Utility) to mount that disk. Is there no easier way, direct from the Desktop/Dock/Finder/via a third party plugin?

    After you unmount the external drive, turn the power off.
    When you need it again, turn the power to the external
    drive back on and the drive will mount automatically.
    If you will need to access the unmounted volume again after a
    short time interval, then you should just leave it mounted.
    DP 1.25 MDD & 1GHz 12" PB   Mac OS X (10.4.7)  

  • My daughter wants to purchase an ipod touch.  Are there charges or fees for texting ipods other than ios5 systems (i.e. ios4's, etc.)?

    My daughter wants to purchase an ipod touch.  Are there charges or fees for texting another ipod with a system other than the ios5 (i.e. ios4,etc.)?

    Also, there is no battery percentage. The battery drains quicker than in iOS 6. The high power consumption may be fixed in the next update.

Maybe you are looking for

  • Error 403.7 - Forbidden: SSL client certificate is required

    Hi people! I�m developing a java client to a WebService (developed in .NET). The communication protocol is HTTPS to the URL where the Web Service is located (something like https://10.200.140.117/dirNotes/serviceName.asmx.). I�ve been reading many po

  • Can I boot an internal hard drive through USB?

    I have an old 2008 Mac Pro running Snow Leopard 10.6.8 that just quit on me. When I boot up, I get to the apple logo and then the screen turns white and stays that way until I power off my machine. I have a few hard drives with operating systems inst

  • Music title ends immediate

    When selecting a music-title from an album the title ends immediatly without playing the music and returns to the album.It looks like as if the iPhonne ist streaming the music to somewhre and ends a second after starting. Sound of other Apps then mus

  • Leopard Server / Windows / ACL Problem

    We have this problem that came up sense we upgraded our servers to Leopard. When Windows users are accessing files (over SMB), the POSIX permissions seem to override the ACLs. This is a problem because applications like Excel will change the permissi

  • Re-install of online purchase of Photoshop not working

    I have to remove un-install my photoshop and now I can't get it re-install from the online purchase receipt. When I downloaded it, Creative cloud was installed with all the apps that I can TRY....how do I get the original photoshop to download?