Lots of inserts and deletes, can i make it faster ?

Hi ,
i have lots of records handling thro' JSP and Javabeans.
So i have to do insert and deletes likek 400 of then at a time.
Is there amy other way of improving performance other than writing a Stored procedure ??
Currently i am executing one at a time in a tight loop.
thanks.

Hi,
If you are not considering Stored Procedures, then the next option is to try "Batch" execution as suggested by Mr. mchan.. But it takes up memory based on the size of data which are batched. In between, using PreparedStatement might not be always beneficial since only a very few drivers support pre-compilation of sql statements. So try batching.. :-)
regards Stallon

Similar Messages

  • WHY does Muse upload every page when I only change one thing. And how can I make Muse faster.

    I have a bunch of sites I do for people that are similar. Here's one: www.mattfelis.com.
    When I make a single change on one page, just a text change (the last time I deleted a freakin' period) and tell Muse to Upload it to FTP host, it uploads every single page in the site. Every one. And since there are 55 pages, that means it takes about 20 minutes with a darned fast upload speed (20MBPS upload). It isn't the uploading that kills me, it's the Exporting of pages. All of them. All 55. Why is it doing this?
    And while we are talking about speed, most of the time in working with these files I see what I call the beach ball of death on a constant basis. Just opening a page from Plan Mode or going back to Plan Mode from a page can take 20 seconds. I know, I've counted. Copy and paste between pages can take longer. I am running a 3 year old Mac Pro with 12 gigs of RAM and tons of disk space. How can I make Muse work better. More RAM? To speed it up I find that I have to quit about every 30 minutes and restart Muse to get it back to any semblance of speed. Smaller sites obviously don't do this but big ones (I have a lot of those) do.
    Any help would be greatly appreciated.

    There's a bug we've become aware of and fixed for the next major release where use of one or more objects on a master page that have different states that require output as separate background images can result in that master page and all pages where that master page is used always being considered out-of-date and in need of re-export and upload.
    Unfortunately, there's no workaround short of removing such items from your master page(s).
    If you're not already part of the Private Beta Program and are interested in working with the next version of Muse prior to its official release, the Private Beta Program is open to all subscribers who can accept the terms of the Non-disclosure Agreement. You can join via the Help menu within Muse. The Beta Program for the next major release will be started soon.

  • Can we have an example of using update, insert, and delete stored procedure

    I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
    Anyone knows?
    Thanks,
    Tue Vu

    Hi ttv,
    I asked around a bit and here's some more info:
    To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
    * Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
    * As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
    * Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
    * Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
    * You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
    And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
    Hope this helps!
    Val

  • When I insert a photo from iPhoto into my iMovie, the photo that appears in the movie is different from the one that I inserted - why is this and how can I make it work properly?

    When I insert a photo from iphoto into imovie, the photo that appears is different from the one that I inserted.  Why is this and how can I make it work properly?

    WHat version of iMovie, and iPhoto?
    THIs forum is for iMovie iOS (iPads, iPhones).
    Are you talking about iMovie for Mac?

  • Insert and Delete at the same time?

    Hi,
    I have a dynamic list and dynamic form. When a person inserts a record using the dynamic form, I would like to delete a record from another table using a foreign key when the new record is added (assuming a record exists in the other table). Is this achievable, and if so, can anyone provide any help?
    Thanks in advance for any advice provided.
    Gary

    As kendenny says, this appears to be a misunderstanding of how database transactions work.
    As Hoek says, if it's an insert and delete on the same table, there is a MERGE statement that can help do that as a single statement.
    However, you do not do an INSERT from one table and a DELETE at the same time from another table.  But that doesn't matter, because that's the point of logica transactions on a database.
    You perform your insert, which starts a transaction (if one isn't already started).
    You then delete from your other table (which adds to the transaction)
    When you're happy that both things are done, you COMMIT your transaction which then applies those changes.
    If you're not happy with something you can ROLLBACK, and that will undo all the changes from the transaction.
    So, the commit and rollback allow the changes to be applied as one logical unit, even though the changes are applied in multiple steps.

  • My free apps purchased using my cousin's apple id won't open anymore on my iphone but apps donwloaded using my own apple id still works. Why is it like that and how can I make apps purchased using my cousin's apple id work on my iphone? Help!

    My free apps purchased using my cousin's apple id won't open anymore on my iphone but apps donwloaded using my own apple id still works. Why is it like that and how can I make apps purchased using my cousin's apple id work on my iphone? Help!

    Welcome to the Apple Community.
    Delete the apps purchased by your cousin and purchase your own.

  • How to get Inserted and Deleted Rows in ALV

    I have looked at the BC_EDIT* examples but I still can't figure out how to determine which rows were Inserted and Deleted from the ALV list.  Can someone please provide me the code to do this?
    Thanks.
    Sandy

    Hi sandy,
    i dont think you will have issue in inserting a row in ALV because whenever the user done some actions say for eg clicking the pushbutton at the toolbar you could insert the a new row into the ALV.for creating pushbutton you need to use the events TOOLBAR,USER_COMMAND.
    deleting a row may also follow the above procedure.
    Have a look at the demo program
    BCALV_GRID_05
    Cheers,
    Abdul Hakim

  • Searching update insert and delete statements

    Hi.
    Suppose, there is change request containing 10 or more programs.
    One of the program has statements, working with database tables,
    like update, insert or delete.
    Is there any transaction where we can select request number and find
    programs working with tables directly.

    Hello
    1. Goto table E071 with TRKORR = change request and OBJECT = {reps, repo, rept}
    2. In field OBJ_NAME will be all reports names in this request
    3. In abap-programm upload this reports into internal table
    4. Search for 'update' 'insert' and 'delete'
    P.s. it is only for reports

  • How to insert and delete fragments by clicking a button and how to script it?

    I have a  question on livecycle. I am collecting the inventor information as a bunch of text fields, each asking for a certain details. Please see below
    Now I have grouped them all in to one fragment called inventordetails and saved as .xdp file, so I could reuse this entire block. I want to add a button underneath this block, “ADD MORE INVENTORS” and when clicked this will insert another block and so forth and so on. However I was not sure as to how to insert and delete a fragment. Do  you think you can help with this? I appreciate any help in this regard.
    Best
    Subashini

    1.       I have a subform1 which is flowed
    2.       I have subform2 inside subform1 which is positioned
    3.       Inside subform2 I have two buttons 1. ADD INVENTOR 2. DELETE INVENTOR
    4.       Also inside subform1 I insert a fragment called inventor
    Now I want to script the buttons so that when clicked the inventor fragment either gets inserted again or deleted.
    I greatly appreciate any help in this regard.
    Best
    Subashini

  • Insert and Delete Button related code

    Hi Expert,
    I have requirement to create custom assignment block with custom table (value node), and add two button "Insert" and "Delete" on that AB.
    I have created the custom AB and button in "DO_PREPARE_OUTPUT" method.
    I need to create event handler for EH_ONINSERT and EH_ONDELETE, once the user click on "Insert" button one row editible row should append on AB and similar way if user select any row in AB and click on delete button entry should be deleted from AB.
    And i need "SAVE" button on top on overview page so entry should get saved in table.
    Regards,
    Kapil

    Hi Kapil,
    You can refer below mentioned link for your web ui related developments.
    SAP CRM WEB UI : 48.ADDING EDIT,CANCEL AND SAVE BUTTONS TO THE OVERVIEW PAGE TOOLBAR
    Rgds
    Hari

  • I am trying to hook my macbook pro to a projector, which has a VGA cable. I bought a VGA to HDMI adapter, but whenever I hook it up, the screen on my macbook just goes black and I can't make it do anything else or even show up on the projector.

    I am trying to hook my macbook pro to a projector, which has a VGA cable. I bought a VGA to HDMI adapter, but whenever I hook it up, the screen on my macbook just goes black and I can't make it do anything else or even show up on the projector.
    My laptop is still on; it just has a black screen that I can't get rid of without shutting down the computer by holding the power button.

    Hey there lynmrigg,
    It sounds like have an HDMI to VGA adapter connecting your MacBook Pro and your projector but the screen on your computer goes black and no image appears on the projector. I would use the troubleshooting in the following article to help resolve or isolate the issue here, named:
    Apple computers: Troubleshooting issues with video on internal or external displays
    Try unplugging the video adapter or cable and then plug it back in.
    If more than one video adapter is in use (or "daisy-chained"), troubleshoot by using only one adapter.
    Example: A mini DisplayPort to DVI adapter connected to a DVI to HDMI adapter is an unsupported configuration because there is a series of adapters in use.
    If available, try using a different display and or adapter (or use a different connector by using DVI instead of VGA, for instance).
    Reset the system
    You can reset the Mac's parameter RAM and SMC.
    Reset the resolution
    Start by resetting the Mac's parameter RAM. If the display does not come up, was previously set to an unsupported resolution, and still results in no video:
    Start up in Safe Mode.
    From the Apple () menu, choose System Preferences.
    Choose Displays from the View menu to open the preferences pane.
    Select any resolution and refresh rate that your display supports.
    Restart your computer.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! Why is this a problem and how can i repair it?

    I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! Why is this a problem and how can i repair it?

    "I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! ":
    That is correct.
    "Why is this a problem and how can i repair it?"
    Becasue this has never been a feature of iphone/ipod/ipad.  There is nothing to repair.

  • When I download pictures from my camera, they turn out a nice big size in iPhoto; other pictures that have been e-mailed to me or imported from older libraries/other computers show up small.  Why is this, and how can I make them all the larger size?

    When I download pictures from my digital camera into iPhoto, they turn out a nice large size (usually almost the full screen), but when somebody e-mails me pictures and I import them into iPhoto, or when I transfer old photos from an old library into my new iPhoto library, they turn out very small--not exactly thumbnail-size, but too small to use for calendars or photo books.  I don't know much about computers, so I don't know how this happened.  Also, I can't find any discernible pattern to why this happens with some pictures and not others--ie: what I described above is usually true, but I have had e-mailed photos or old photos turn out the way I want them, which is in the larger size in iPhoto.  Why is this happening, and how can I make all the pictures the larger size?

    Some mail programs, including Apple Mail, can reduce the size of images that are attached to a message. It's happening at the sender's end, and all you can do is ask the sender for a larger image.

  • HT5631 how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    In order to use your Apple ID to create an iCloud account, the primary email address associated with the ID must first be verified.  To do this, Apple will send a verification email to your account and you must respond to the email by clicking the Verify Now link.  Make sure you are check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • TS1424 I have an ipad and an iphone on two seperate itunes account and i can not make an itunes purchase on either device.  I keep getting asked for answers to the securtity question which i never answered in the first place! How do i fix this?

    I have two seperate itunes accounts on two seperate devices and i can not make an itunes purchase on either one. When signing into the account it ask for the  answer to security questions. I have NEVER answered a security question for these accounts.  Each time it is a different set of questions. This has only happend since the original devices have been replaced/upgraded. How do I fix this?   There is money in each account and both have recieved itunes giftcards for christmas that they are unable to use!

    sailsalot wrote:
    I have a new ipad and have used the community to answer questions for myself.  Your help has been great!  I don't know how you got my sailsalot name from my Skype account but I signed in with you as "gags76" and got help with my new ipad.  I discovered I used a different Apple id and password on my ipad from my computer (imac) and changed that.  My e-mail is   Could you email me if there is something I should do at my end.  I have to use itunes to sync with my ipad so I have been going back and forth between the two.  Should I sign in with my proper Apple id on my ipad?
    Yes

Maybe you are looking for