Suggestion regarding running preparedstatement and batchupdate

I have to insert many rows in database therefore i use preparedstatement and for loop.I want to know if i add all the query in batch and then execute will it give better performance .Will sql statement is still in compiled form when execute in batch .Let if i add another sql statement which is different from previous sql statement in batch what the effect it has on performance.
Thanks

hi.,
check this out..
http://forum.java.sun.com/thread.jspa?threadID=154870&start=15&tstart=0

Similar Messages

  • I got a question regarding running iOs and Windows using virtual software.

    Greetings!
    I got a question regarding running iOs and Windows using virtual software. I recently bought a monitor so I can display Windows on it and run both OS at the same time.Now,I'm using BootCamp. I downloaded VirtualBox for "tranferring" Windows on it. Since I'm a new iOs user , what do I need to do in order to make work?
    Do I need to un-install Windows from BootCamp,install VirtualBox and then install them again?
    Any information would be appreciate it!

    That should work to use OS X, you can run MS Windows using Virtual Box and use a seperate display for the Virtual Box window. That way you can run OS X and MS Windows simultaneously. However remember Virtual Box is freeware and not a commercial application like Parallels or VMWare Fusion and may not have the features of a commercial application. Support for Windows run in any virtualization application (Virtual Box, Parallels or Fusion) is not generally done on this forum as they are not OS X related. To get help on those apps you usually will need to go to their forums.
    Remember IOS will not run on either OS X or MS Windows, it only works on IOS devices.
    Good luck with your installation.

  • Need suggestion regarding File compression and splititng

    Hi,
    I want to split and compress the big files into small chucks. On later any standard zip utility i.e. winzip, 7z etc can merge(extract) all the chunks to generate the original file. I am looking for any java library which provide the split and compression functionality.
    As Java also supports in built compression utility. Should I use those library or any other open source is available to do this? I welcome your suggestion regarding how can I start.
    Thanks

    If you're just looking for something to be used internally, it'd be pretty simple:
    1. Open your source InputStream.
    2. Create a standard read/write loop to pump the stream.
    3. Add a counter that determines how much you've pushed into your current target. After you reach a certain value, close your current target, create a new target stream, and reset the counter.
    4. Conclude by closing your source and your current target.
    For compression, you can use the built-in GZIPOutputStream or a third-party library of your choice. I usually find GZIP sufficient for my needs.
    Of course, if you want the output to be compatible with other programs like 7-Zip, you've got a lot more work on your hands complying with the file format spec. :)

  • Suggestion regarding website usability, and the AUR

    Hey everyone, lately i've been doing some thinking on how to improve the website and integrating things as easily and best as possible. Before the flames on this being commercial software begin, just hear me out.
    With minimal - no effort and hacking of the source code we can have these features:
    · Single login/registration for everything below
    · Announcements on front page piping automatically piping discussion to it's own thread in specified forum
    · Blogs
    · Gallery
    · shared login with mediawiki
    · An improved AUR system, with an accurate way to gauge package usage (which i'll describe and show below)
    · Shop
    · Donations system which displays in real time and adds user to a thank you page (unless they choose to be anonymous)
    · Forum system lightyears better than phpbb (current info and userbase simple to import)
    · Very powerful (and easy) administration/privelage system
    · RSS Feeds on every Area you choose to have them for
    · even our user map can be integrated with no effort
    · mailing list threads piped to specified forum and vise versa
    What i'm proposing is vBulletin. An owned license (one time lifetime fee) is only 160$, and i feel with the extra donations this is well worth it, in pretty much every way i can think of.
    AUR system:
    It probably will be easiest to show by example, so here it is - http://www.vbulletin.org/forum/showthre … did=108515 . The best feature this offers us (along of course with being centralized), is the way the voting would work. Right now, i know i'm guilty, but i just get too lazy and forget to always click to vote on a package i use. And also alot of the time i stop using said package.
    With this system, you click install, when you have installed a package, the contributor can see exactly who installed and who hasnt (Which is good as a way to nudge people who post for support, yet havent clicked install/voted). People will be much more likely to vote/click install a package here, since doing so will enable them to be notified via email every time the package is updated. and when they uninstall and no longer wish to be notified of updates, they just click uninstall.
    I know currently we have the rss feed for the aur which does similar, but afaik it only shows new packages and not updated ones?. Which can be a pain to always check to stay up to date.
    Anyways, give it some thought. I've been using and hacking up vB for quite some time, so if you guys have any questions on other areas, just ask. I'm posting this to the mailing list as well. Don't take this as a flame on the current website efforts. I just feel this would make things easier to manage and stay organized, and better for the end user for the same reason.
    Thanks for making it through my novel,
    -- Chris O'Reilly

    Ok guys, I'm gonna butt in here, I've seen this happen several times before.  While you can discuss all you want, I guarantee nothing will happen unless somebody actually chooses to do something. We talked for ages about a wiki, but it didn't happen until rasat set it up. We talked for ages about a NEW wiki, but that didn't happen until cactus set it up. We talked for ages about forum mods, but that didn't happen until dibble set it up. We talked for ages about Arch64 before syamajala and now andyRTR took on the project. We talked for ages about a custom kernel PKGBUILD before I and later dibble tackled the project. We've talked for ages about gui frontends to pacman and people have set them up and the project usually falls apart, barring jacman. and so on.
    Now, if anyone is *serious* about this project, and I mean serious as in you've thought about it and realize that its HUGE, I would suggest one of two things:
    1) talk to Judd and see if he has any ideas
    2) start hacking something together and show it to Judd
    Now, from previous experience in Arch-related development, I can guarantee that Judd won't just accept or assign someone to start this project. What he will do, however, is provide answers and feedback if someone is working on it, and if he likes the results, he will accept them as well. This is typical arch development.
    I would say that since the website is such a visual first impression of Arch, Judd might want more input into it, but I doubt this is true.... if he was that concerned, something would have been done with the front page before now. ;-)
    Basically, I'm saying talk all you like, but it won't do any good.
    Dusty

  • Want suggestion regarding a bulk deletion

    Hi,
    I need some suggestion regarding a deletion and i have the following scenario.
    tab1 contains 100 items.
    for one item tab2..6 tables contain 4000 rows.So the loop will run for each item and will delete 20,000 lines and will do a commit.
    Currently for 5,00,000 deletion it is taking 1 hr.All the tables and indexes are analysied.
    CURSOR C_CHECK_DELETE_IND
    IS
    SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y';
    type p_item IS TABLE OF tab1.item%type;
    act_p_item p_item;
    BEGIN
    OPEN C_CHECK_DELETE_IND;
    LOOP
    FETCH C_CHECK_DELETE_IND bulk collect INTO act_p_item limit 5000;
    FOR i IN 1..act_p_item.count
    LOOP
    DELETE FROM tab2 WHERE item = act_p_item(i);
    DELETE FROM tab3 WHERE item = act_p_item(i);
    DELETE FROM tab4 WHERE item = act_p_item(i);
    DELETE FROM tab5 WHERE item = act_p_item(i);
    DELETE FROM tab6 WHERE item = act_p_item(i);
    COMMIT;
    END IF;
    END LOOP;
    exit when C_CHECK_DELETE_IND%notfound;
    END LOOP;
    Hope i have explained the scenario.Can you please suggest me the right approach.
    Thanks in advance.

    Hi,
    why not just use straight sql. ie
    DELETE FROM tabn
    WHERE  item in (
      SELECT api.item
      FROM   tab1 api
      WHERE  api.delete_item_ind = 'Y');For bulk deletes other techniques include -
    disabling constraints then reenabling them
    making indexes unusable and then rebuilding them
    creating temporary tables with the data you want left, dropping the source table and renaming the temp table
    partitioning
    Which of these is most useful depends on a lot of factors such as data volumes versus delete volumes, system outage availability, concurrency issues etc.
    Regards
    Andre

  • TS1362 I have a Mac Pro tower, am running osx and iTunes will not work.. It basically just stopped working after having run faultlessly for...years... I can see all the songs, playlists etc, but the progress bar will not progress..it's 'stuck'. Suggestion

    I have a Mac Pro tower am running OSX and iTunes will not work. It has always worked flawlessly. I can see all my iTunes content- my playlists, my songs et cetera, But I cannot play anything. The progress bar is  'stuck'...any suggestions?

    Thanks. I have been using iTunes since its inception and have never had a problem...I'm using the latest version. The progress bar is the bar that moves when you're playing a song..it just won't start when I double click on a song,..have tried quitting, rebooting etc but nothing works. Apple are useless-they have told me twice they've tried to call me 'momentarily', but I've been waiting by the phone, and they definitely have not tried to call...

  • Hi, I have a mac book pro running mavericks and recently tried to connect to a 3rd ten apple tv but the airplay icon is not showing up in the top bar. I then tried my girlfriends laptop running mountain lion and it showed up straight away. Any suggestions

    Hi, I have a mac book pro running mavericks and recently tried to connect to a 3rd gen apple tv but the airplay icon is not showing up in the top bar. I then tried my girlfriends laptop running mountain lion and it showed up straight away. Any suggestions?

    How old is the MacBook Pro?  AirPlay is only supported on 2011 and newer models, due to the requirements it has in hardware for graphics acceleration.

  • Do you "defrag" apple computers like other computers? My laptop seems to be running slow, and someone suggested defrag to get rid of "cookies"

    Do you "defrag" apple computers like other computers? My laptop seems to be running slow, and someone suggested I defrag it to get rid of "cookies" that can slow it down.

    You are confusing two different things.
    RAM is memory, not hard drive space.
    To see how much free space you have open any Finder window and it will tell you at the bottom of the window.
    Or you can look in Disk Utility.

  • My mac won't wake up from a sleep and I have to unplug it to reboot as the power button doesn't function as well.  Any suggestions?  Running Lion 10.7.4 and sending all reports in.

    My mac won't wake up from a sleep and I have to unplug it to reboot as the power button doesn't function as well.  Any suggestions?  Running Lion 10.7.4 and sending all reports in to Apple.

    First things first:
    Update your profile (equipent, OSX, etc)
    In Lion MS office2004 is not compatible, are you stIll using it?
    Do the SMC RESET and do the PRAM reset.

  • TS1363 I can't connect to the itunes store from my Windows Vista PC. I have run diagnostics and itunes have verified my internet connection as positive, but not the secure link to the itunes store. This comes up as failed.  Any suggestions?

    I can't connect to the itunes store from my Windows Vista PC. I have run diagnostics and itunes have verified my internet connection as positive, but not the secure link to the itunes store. This comes up as failed.  Any suggestions?

    everytime I try to open the store it endlessly says "accessing iTunes store" but it never opens.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • TS1389 Trying to play purchased TV series to my Apple TV, I am requested to authorise the computer.  This has already been done and I have tried the suggestions regarding authorisation.  I can play the programs on my computer, but not the Apple TV.

    Trying to play purchased TV series to my Apple TV, I am requested to authorise the computer.  This has already been done and I have tried the suggestions regarding authorisation.  I can play the programs on my computer, but not the Apple TV.
    Any ideas?

    in remote app click on the
    lower left corner on the text
    top of the context menu click devices
    choose the appletv rather then your shared lib in the list
    if you are trying to view a movie that is located on your ipad on your tv using the appletv then
    you should use airplay mirror not the remote app

  • My iMac is running slower and slower? os x 10.8.2 24" early 2008  Any suggestions

    Imac 24" early 2008 is running slower and slower. Software OS X 10.8.2 Any suggestions?

    Suggestions To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with a visit to: OS X Maintenance - MacAttorney.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is 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.
    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.
    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):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. 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.
    Additional Hints
    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.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • I have a macbook pro running lion and it will not log on to a microsoft exchange server. any suggestions

    i have a macbook pro running lion and cannot log on to my microsoft exchange server.  Not a problem with my iphone and ipad are there any issues or fixes for this?

    I found the following suggested fix, posted by a user on Barnes & Noble's site:
    1. Create a folder in your Applications folder, call it: NOOKforMac
    Once you've done this, copy the Nook app to this folder. This should allow the app to run on the 1st or possibly second attempt to launch it.
    2. Once you're done using the app always quit it by clicking on the X (red in some cases) button of the application window (upper left hand corner)
    This seems to have resolved the issue and my guess is that somehow the .dmg volume path is somewhere hard coded in the app configuration.
    Elsewhere in that thread, the administrator advises calling Customer Service Team at 1-800-THE-BOOK (1-800-843-2665) and choose option 2 for Digital Support. 
    Good luck.

  • Since I updated Firefox I have to constantly re log-in to my Yahoo account such as email. Every time I leave the page I have to log-in to get back into it. I also run OPERA and I do not have that problem with them. I stay logged in. Any suggestions?

    I have windows Vista and have the updated version of Firefox. I also can run OPERA and LUNASCAPE with no problems. When running Firefox I have to constant re log-in to my Yahoo account every time I leave the page. For example: I log in to check my email on Yahoo and then leave my email page. Then when I return to recheck my email I have to log in all over again. I can't stay logged in. If I run my OPERA browser I stay logged in for days without having to sign in all over again.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    "Remove Cookies" from sites causing problems:
    Tools > Options > Privacy > Cookies: "Show Cookies"
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • HT1386 I have an iPhone 4 running iOS4 and I am unable to back it up to either a PC or a Mac. Any suggestions as to how I can back it up and then transfer everything to my iPhone 4S?

    I have an iPhone 4 that I am unable to back up to either a PC or a Mac. It's running iOS4 and has never been backed up. I want to transfer everything to my iPhone 4s, but since I can't back it up, I can't transfer anything. Any ideas?

    Why can't you back it up? What are the error messages?

Maybe you are looking for

  • MIRO based on purchase order and delivery note

    Hi It seems I can do a supplier invoice based on PO or some POs. I can also do a supplier invoice based on delivery note or some delivery notes. But I can not do MIRO based on delivery note AND purchase order. Business scenario: I need this when I ha

  • Publish to JMS control

    Hi, I want to publish a message to a message queue using JMS control in pageflow. The JMS control is configured properly, it has set connection-factory-jndi-name, send-type and send-jndi-name. Receive-jndi-name is not set because the control doesn't

  • Bandwidth Impact?

    I am wondering how often the CS-MARS v5.3 polls devices? I have added a couple of routers to the Security and Monitor Devices section and set the SNMP community string as well as the telnet access method. Does the MARS appliance poll via SNMP and tel

  • Do any instances of RGB get converted to CMYK on output to PDF?

    Hi, I'm producing a HUGE catalogue that I've inherited from another designer. It will be going to print soon and I'll be providing the printers with a press ready PDF. The catalogue contains hundreds of individual blocks of colour (used to show colou

  • Display projet planned line items CJI4

    i have done planning on wbs *** cost element level in CJR2 along with quantity im trying to run report CJI4 but no line item selected. No line items were selected Message no. KB422 Diagnosis No line items were found. Possible explanations: You have n