Hive connection performs slower than Native connection

Jing, to add to what Justin said above - for small jobs the overhead of executing on Hadoop could sometimes be disadvantageous compared to native execution on Informatica platform. Typically when you pushdown mappings involving huge data processing you will see performance gain as the work in Hadoop is split acorss multiple data nodes and processed parallely.

I am using trial BDE, Hortonworks. I tested m_Sample_Web_log_parsing using Native connection and then using Hive connection, Hive connection takes much longer to finish the job. My understanding is Hadoop Hive should be faster, why is the testing result different from my expection?  See img, top one job is using Hive connection; second one is using Nativee connection.

Similar Messages

  • SG300-28 poor performance other than native vlan.

    We have a single SG300-28 in L2 mode with 1.1.1.8
    3 vlans
    3 virtual interfaces and 1 parent interface configured on the sonic firewall
    Switch(trunk allow all)-->sonic( 1 parent interface and 3 virtual IP's)
    vlan 10  192.168.10.1
    vlan 20  192.168.20.1
    vlan 30  192.168.30.1
    vlan 1   192.168.99.1 (parent interface)
    Cisco switch mgmt IP 192.168.99.2
    When PC connected to access port of switch with pvid ( 10 or 20 or 30) performance to internet is slow.
    When PC connected to access port of switch with pvid ( 1) performance is as expected.
    PC is able to connect to firewall and get DHCP configuration automatically based on the port which vlan is configured.
    We connected PC directtly to firewall and performance is good irrespective whcih vlan tag was set by PC using realtek utilitiy. Based on the tag set
    PC automatically got DHCP IP for that vlan from firewall. This tells us that the performance problem is isolated to Switch.
    Please advise what could be done.
    I will update to 1.1.2 and test out. So far this switch has been  PITA.

    Hi Dave,
                    As per your email I did  within switchperformance for clients in vlan 10 and also native vlan. There is no perfromance difference.
    As per setup couple of ports in access vlan 10,20,30 etc and rest in native. Port 24 which is trunked to allow all vlan is connected to Sonic FW. Please see attached ttcp results and show tech.
    When I say performance to WAN is poor through firewall it means that webpage from speedtest.net is slow and other webistes like gmail load very slowly (almost unusable)
    Thank you,
    Sreenath.

  • Crystal Reports version 13 managed api's run slower than native version 11

    Hello,
    I am a senior engineer, working in a project of porting client code written in C++ using Crystal 11. It uses the native COM api like shown approximately in the following code fragment:-
    IApplicationPtr pApplication;
    pApplication.CreateInstance("CrystalRuntime.Application.11");
    pReport = pApplication->OpenReport("myreportfile.rpt", vtOpenMethod);
    ... code to setup Export Options, setLogonInfo on database, set parameters for report etc.
    pReport->Export(false);
    This code is launched in few threads, and works nicely, and a very stable used code in real world.
    We have ported this to Crystal 13 .NET api's and our code approximately looks like
    ReportDocument document = new ReportDocument();
    document.Load("myreportfile.rpt", OpenReportByTempCopy);
    .. set diskfile format options, pdf format options, paramters, logon info etc. very very similar to the native C++ code, almost matching 1 by 1 line
    document.Export();
    document.Close();
    No problem so far, and it works fine. This is also launched in multiple threads same in number like native, and works fine. We get the same pdf file generated.
    But here is the problem. In native we are getting easily around 2000 reports in 20 mins. But in managed we are taking 35 mins for the same set of reports. The output looks fine and same etc. But there is a good 40-50% performance regression, and we have tried so many things, but never able to beat this 40-50% perf degradation.
    Can you please help ? A few questions. First are we executing document.Export really concurrently ? Is there any waiting or serialization going on insider Crystal api's. Is this Crystal 13 managed api, a thin stub layer just passing on to native COM apartment threaded dll. Can this layer introduce such a delay ?
    A few things we have tried and haven't succeeded for summary:-
    1. Opened 1 dummy report in the beginning and kept opened throught, to flush any ref counted inits
    2. Didn't perform Close immediately, but had another thread chew on it and Close delayed
    3. Reduced the thread to 1, (in native as well), again our perf degradation is comparable.
    4. Optimized the reports from various suggestion in this forum. Did better, but so did the native, and still we are comparatively poorer.
    Thanks for the same, Eager to supply more info if required.
    R. Sridharan

    First I'd like you to have a look at the document SAP Crystal Reports Engine in a Multi-Threaded Visual Studio Application. Next make sure you are using SP 10 for CRVS.
    Next, you will have to tell me what database you are using, connection type and if MS SQL, what client?
    BTW.; these being community forums, you may get an answer, you may not. It may be timely, or not. If you are looking for a faster response, there is the option of creating a phone incident here:
    Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
    One more KBA to look at:
    1403341 - How to export reports in multiple threads using the Crystal Reports .NET RAS SDK 
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • SYSTEM PERFORMANCE SLOWER THAN EXPECTED

    The system performance is poor. Any tips?  Should I schedule a genius bar appointment?

    The system performance is poor.
    In what way?  Need details.  Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    Any tips?
    Not until you provide details.
    Should I schedule a genius bar appointment?
    Not until we find out if it's necessary.
    OS X (10.6)
    Use Software Update or the OS 10.6.8 combo update to update your OS.  Also, update everything SU has to offer for your computer.  When done, repair permissions and restart your computer.

  • IMac OS X performing slow/hangs

    My iMac system is performing slower than expected and often hangs. I often wait up to a minute for the next action to happen, while the little cursor sits and spins. What to do? Frustrating.
    System specs that seem pertinent:
    4G memory (2 slots taken; 2 slots free)
    storage report says 176G free out of 499G
    OS X, 10.8.2
    Thanks, Apple community.

    Most often this indicates you are running to many applications concurrently for the amount of physical RAM you have installed. It may also mean you have a crashed process:
    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 (>=70,) 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.
    While Activity Monitor is open click on the System Memory tab in the bottom portion of the AM window. Use COMMAND-SHIFT-4, use the crosshairs to select this portion of the AM window, then use the Camera icon of this message composition window to post the image here.

  • Why are Tiger Connection Speeds Slower than Jaguar and PCs?

    There is no doubt in my mind that Tiger (10.4.5 and 10.4.6 in my experience) connects to the Internet at speeds which are 20-25% slower than the speeds attained in Jaguar (I have no personal experience with Panther) and by PCs.
    I have tested speeds at testmy.net and speakeasy.net on my Mac Mini running 10.4.6 (and before that 10.4.5), my iBook running 10.2.8, and my Dell Dimension 8250 running Windows XP. The iBook and Dell consistently measure 3400-3550 Kbps on a wireless connection to a LinkSys router and cable modem, whereas the Mini measures 2600-2900 Kbps (and sometimes much slower.) All three computers are next to one another, connecting to the same router and cable modem.
    These results are very consistent over dozens of trials over a long period of time. They are not an aberration.
    Any explanations or fixes? I have turned off IPv6, manually entered DNS servers in TCP/IP, tweaked settings with RMAC and Cocktail, but none of it has made a lasting difference. Interestingly, I have on a very few occasions found a speedup to PC and Jaguar levels on the first speed test only, after some of the listed adjustments.
    Bob N.
    Mac Mini 1.5 GHz; iBook 900 mHz; iPod 20 GB   Mac OS X (10.4.5)  

    Im marking this as answered even though it isn't, just to get it off the list of unresolved questions, where it has gathered dust for many months.

  • Urgent: WAD performance is very slow than query performance

    Hi,
       If i execute the report(using query with variables) which contains 8,50,000 records in WAD then its taking more than 900 seconds and say Connection timed out at the end.
      If i execute the same query in Query designer using Web browser then it will take 400 seconds to show all the data in hierarchy or tabular view.
      I've done tuning using RSRT on query read mode and persistent mode etc..
      Can you please help me?
    THanks in advance. Points will be given...
    Reg,
      Varun

    Varun,
    Did you ever solve the performance issue of WAD report.  We are having the same issue of WAD performance lot slower than executing just as a Query.
    Thanks

  • Is the performance of iOS 6 on iPhone 4 slower than iOS 5?

    Is the performance of iOS 6 slower than iOS 5 on iPhone 4 (GSM) ?

    I haven't upgraded after a visit to my local Apple store. On playing with the iPhone 5, I found Safari to be very slow so I logged on to their wifi on my 4s running 5.1.1 and loaded the same uncashed webpage on both. iPhone 5 18 seconds and my 4s 8.5!
    Hmm, I then tried the same with 2 other 5s, exactly the same. Next I tried a demo 4s running 5.1.1 and it was he same as mine.
    Lastly, today I tried a friend's 4s  running ios6 and it was way slower than the iPhone 5s in the Apple store.
    Conclusion? Keep away from ios 6 for now.

  • Why does this forum perform much slower than form forum in metalink?

    I feel strongly that this forum performs much slower than the form forum in metalink where there are even more active and more issues created there.
    I don't know why Oracle creates two form forum, which one is faster and another one is slower.
    What is the difference b/w them besides here is jsp pages and over there is plsql pages?

    Oracle certainly allows you to have users that do not have roles. Or users that don't have any system privileges. Or users that don't have any object privileges.
    If you want the query to return a row for every row in DBA_USERS, you would need to outer join all the other tables to DBA_USERS.
    Justin

  • Why performance of Illustrator CS6 slower than Illustrator CS5.5?

    Ex: Process get text of TextFrame has 657 characters:
    Dim t1 As String
      Dim t2 As String
      t1 = DateTime.Now.Minute & " " & DateTime.Now.Second & " " & DateTime.Now.Millisecond
      Dim text As String
      For iChar = 1 To iCharNum
          oChar = oContents.Characters(iChar)
          Dim str As String
          str = oChar.contents.ToString
          text = text & str
      Next
      t2 = DateTime.Now.Minute & " " & DateTime.Now.Second & " " & DateTime.Now.Millisecond
    Result:
    Time of CS5.5: 0s 487
                             t1= 38 43 71
                             t2= 38 43 558
    Time of CS6: 3s 871
                             t1=42 54 738
                             t2=42 58 609
    Why performance of Illustrator CS6 slower than Illustrator CS5.5?
    Can i set attribute increase performance of Illustrator CS6 ?

    Hi, yes
    CS5 - I run it several times, consistently getting 1 second
    9/23/2014 22:00:09.000
    9/23/2014 22:00:10.000
    CS4 - the script finished immediately, super fast, in a fraction of a second
    9/23/2014 22:07:20.000
    9/23/2014 22:07:20.000

  • After updating to Mavericks, my mac seems slower than ever.

    Here is a report for my mac that maybe someone can help me figure out why.  Is something not compatible?
    Hardware Information:
    iMac (21.5-inch, Mid 2011)
    iMac - model: iMac12,1
    1 2.5 GHz Intel Core i5 CPU: 4 cores
    4 GB RAM
    Video Information:
    AMD Radeon HD 6750M - VRAM: 512 MB
    System Software:
    OS X 10.9.2 (13C64) - Uptime: 0 days 6:56:17
    Disk Information:
    ST3500418AS disk0 : (500.11 GB)
    EFI (disk0s1) <not mounted>: 209.7 MB
    Macintosh HD (disk0s2) / [Startup]: 499.25 GB (133.53 GB free)
    Recovery HD (disk0s3) <not mounted>: 650 MB
    HL-DT-STDVDRW  GA32N 
    USB Information:
    Apple Computer, Inc. IR Receiver
    Apple Internal Memory Card Reader
    Apple Inc. FaceTime HD Camera (Built-in)
    Apple Inc. BRCM2046 Hub
    Apple Inc. Bluetooth USB Host Controller
    Serato Serato Scratch LIVE(c)2004
    SCM Microsystems Inc. SCR3310 v2.0 USB Smart Card Reader
    FireWire Information:
    Thunderbolt Information:
    Apple Inc. thunderbolt_bus
    Kernel Extensions:
    com.serato.usb.kext     (2.3.0)
    Launch Daemons:
    [System]     com.adobe.fpsaud.plist 3rd-Party support link
    [System]     com.macpaw.CleanMyMac2.Agent.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.accessd.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.attachmentd.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.backupd.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.cardcald.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.portsd.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.staged.plist 3rd-Party support link
    [System]     com.marketcircle.daylite.touchd.plist 3rd-Party support link
    [System]     com.microsoft.office.licensing.helper.plist 3rd-Party support link
    Launch Agents:
    [System]     com.divx.dms.agent.plist 3rd-Party support link
    [System]     com.divx.update.agent.plist 3rd-Party support link
    User Launch Agents:
    [not loaded]     com.adobe.ARM.[...].plist 3rd-Party support link
    [not loaded]     com.citrixonline.GoToMeeting.G2MUpdate.plist 3rd-Party support link
    [not loaded]     com.divx.agent.postinstall.plist 3rd-Party support link
    [not loaded]     com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist 3rd-Party support link
    [not loaded]     com.macpaw.CleanMyMac2Helper.scheduledScan.plist 3rd-Party support link
    [not loaded]     com.macpaw.CleanMyMac2Helper.trashWatcher.plist 3rd-Party support link
    User Login Items:
    iTunesHelper
    AdobeResourceSynchronizer
    Dropbox
    Internet Plug-ins:
    FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
    Default Browser: Version: 537 - SDK 10.9
    AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 3rd-Party support link
    AdobePDFViewer: Version: 11.0.06 - SDK 10.6 3rd-Party support link
    Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
    LogMeIn: Version: 1.0.961 - SDK 10.7 3rd-Party support link
    LogMeInSafari32: Version: 1.0.961 - SDK 10.7 3rd-Party support link
    QuickTime Plugin: Version: 7.7.3
    SharePointBrowserPlugin: Version: 14.3.2 - SDK 10.6 3rd-Party support link
    Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
    Unity Web Player: Version: UnityPlayer version 4.3.4f1 - SDK 10.6 3rd-Party support link
    Safari Extensions:
    DivX Plus Web Player HTML5 <video>: Version: 2.1.2.172
    Amazon Shopping Assistant: Version: 1.1
    Ebay Shopping Assistant: Version: 1.1
    Searchme: Version: 1.2
    Audio Plug-ins:
    BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
    AirPlay: Version: 2.0 - SDK 10.9
    AppleAVBAudio: Version: 203.2 - SDK 10.9
    iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
    Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
    TuneUp Visualizer: Version: 2.4.0 - SDK 10.7 3rd-Party support link
    User Internet Plug-ins:
    CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 3rd-Party support link
    Google Earth Web Plug-in: Version: 7.0 3rd-Party support link
    3rd Party Preference Panes:
    Flash Player  3rd-Party support link
    Old Applications:
    /Library/Application Support/Microsoft/MERP2.0
    Microsoft Error Reporting:     Version: 2.2.9 - SDK 10.4 3rd-Party support link
    Microsoft Ship Asserts:     Version: 1.1.4 - SDK 10.4 3rd-Party support link
    Solver:     Version: 1.0 - SDK 10.5 3rd-Party support link
    /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
    SLLauncher:     Version: 1.0 - SDK 10.5 3rd-Party support link
    /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
    /Applications/Microsoft Office 2011/Office
    Microsoft Graph:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Database Utility:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Office Reminders:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Upload Center:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    My Day:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    SyncServicesAgent:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Open XML for Excel:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Alerts Daemon:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Database Daemon:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Chart Converter:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Clip Gallery:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Epson Printer Utility 4:     Version: 9.17 - SDK 10.5 3rd-Party support link
    /Library/Printers/EPSON/InkjetPrinter2/Utility/UT4/Epson Printer Utility 4.app
    /Applications/Microsoft Office 2011
    Microsoft PowerPoint:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Excel:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Outlook:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Word:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Document Connection:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    Microsoft Language Register:     Version: 14.3.2 - SDK 10.5 3rd-Party support link
    /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
    BrFirmDataProvider:     Version: 1.0.4 - SDK 10.4 3rd-Party support link
    /Applications/Brother/Utilities/Firmware Update Tool/BrIfax/resources/BrFirmDataProvider.app
    Microsoft AutoUpdate:     Version: 2.3.6 - SDK 10.4 3rd-Party support link
    /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
    /Applications/iWork '09
    PDF Toolkit:     Version: 1.6 - SDK 10.0 3rd-Party support link
    Time Machine:
    Skip System Files: NO
    Mobile backups: OFF
    Auto backup: NO - Auto backup turned off
    Volumes being backed up:
    Macintosh HD: Disk size: 464.96 GB Disk used: 340.60 GB
    Destinations:
    Data [Network] (Last used)
    Total size: 2 
    Total number of backups: 91
    Oldest backup: 2012-12-11 04:35:50 +0000
    Last backup: 2014-03-03 17:10:05 +0000
    Size of backup disk: Excellent
    Backup size 2  > (Disk size 464.96 GB X 3)
    Time Machine details may not be accurate.
    All volumes being backed up may not be listed.
    Top Processes by CPU:
        14%     iTunes
        4%     WindowServer
        1%     Dock
        1%     Mail
        0%     coreaudiod
    Top Processes by Memory:
    274 MB     Mail
    187 MB     iTunes
    147 MB     mds_stores
    74 MB     softwareupdated
    45 MB     Safari
    Virtual Memory Information:
    31 MB     Free RAM
    906 MB     Active RAM
    897 MB     Inactive RAM
    893 MB     Wired RAM
    7.59 GB     Page-ins
    1.55 GB     Page-outs

    Try removing CleanMyMac. The OS cleans up after itself.
    Myth of the Dirty Mac
    CleanMyMac - Uninstall
    CleanMyMac2 Un-install
    Activity Monitor - Mavericks
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy

  • Mac OS internet 5x slower than Windows 7 on BootCamp

    Alright, here is my problem...
    My one and only computer is a mid 2010 iMac... I recently moved to a new place. Prior to me moving I was stuck with an awful 3Mbps download speed. (You can tell how much I hated it by looking at my username) Now that I moved, I am able to get much faster internet. So, I got a plan that offers up to 50Mbps download speeds (Xfinity Blast cable internet). I didn't want to rent my ISP's modem/router, so I purchased my own. I got a Motorola sbg6580. As soon as I got everything hooked up, it seemed perfect. I used speedtest.net to see what I was getting. I first tested on Windows 7. To my surprise, I was getting around 70Mbps. I then restarted my iMac into the Mac OS to do some speed tests. On the Mac OS, I was getting around 50-60Mbps. A bit slower than Windows 7, but still very good. The next day I decided to do a "real world" test. I downloaded a 1 Gigabyte file just to see how fast it was. Now, if I was getting 50Mbps the file should have taken just under 3 minutes to download. Instead, it took around 7 minutes. I figured it was maybe just the website I was downloading from. (the file I was downloading was the Cry Enginge SDK - http://www.crydev.net/ ) I did some research and discovered the website testmy.net - I am not sure if this is completely reliable or not, but every test I do on testmy.net I get around 10Mbps. At first I thought it was my ISP ripping me off, then I decided to do a testmy.net test on Windows 7 via BootCamp. (please note that on both Mac OSX and Windows 7 I did multiple tests over the coarse of multiple days) On Windows, I could instantly tell that the test was going much faster. The results for testmy.net on Windows 7 were 50-60Mbps. I did not completely trust the website, so I downloaded the same Cryengine SDK on Windows. It took around 3 minutes, just as it should have. I researched a bunch online trying to find info on this problem. I tried many "solutions" but none of them changed anything. (these include but are not limited to: Tried different DNS servers, Disabled ipv6, disabled sbg6580 firewall, disabled mac osx firewall, tried changing the wireless channel, and reset sbg6580. I came to the conclusion that it was the sbg6580. I thought that maybe an airport express would give me better results. So, today I bought an Airport express. With the sbg6580, I was able to disable the router features so it was just a modem. I was then able to set up the Airport express as my router. It fixed nothing. I am still getting the same results, Windows is still getting anywhere from 50-60Mbps while Mac OSX is getting around 10Mbps. I am out of ideas, if anyone could please help me that would be great. Also, if you need to know anything else please let me know. I may have missed something...
    A quick note:
    At my old house I had my iMac hooked up to a surge protector. For maximum internet performance, my iMac was connected to my router with an ethernet cable. During a bad storm one day, a lightning bolt either hit my house or very close to it. Ever since, my ethernet port has not worked. I have tried multiple eithernet cables as well as multiple routers and networks. I do not have the money for apple to completely replace my logic board. - So anyway, I am unable to test the performace with an eithernet cable.
    Extra information:
    My sbg6580 as well as my Airport extreme are both sitting on the same desk as my iMac, so it is obviously not a signal problem.
    I also own both a iPod touch 5th gen and a iPad 2nd gen. I am getting around 20-30Mbps on both of them. I am not sure what would be a "good speed" on either of these, but I figured that was pretty good for a tablet and ipod.
    The upload speeds on both windows 7 and Mac OSX are around the same 5-10Mbps.
    I am using Google Chrome on both Windows 7 and Mac OSX but, I have also tried Firefox and Safari.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Brand new Macbook Pro slower than my 2006 Macbook

    I bought a new Macbook Pro last month and upgraded the RAM to 4 GB and the hard drive to 500 GB. My previous Mac was a mid-2006 Macbook with 2 GB RAM.
    I was expecting it to be noticeably faster than my 2006 Macbook (which is still running Tiger/10.4), but it isn't. Two things are particularly noticeable.
    1) Startup time. The 2006 Macbook is 5 or 10 seconds faster starting up.
    2) Safari. Safari is a couple of seconds faster loading identical websites on the 2006 Macbook. I tried updating Safari on the Macbook Pro to the new Safari 4 beta, and that is slightly faster, but still noticeably slower than on my Macbook.
    I've tried running the set of Applescripts called "Maintenance" (available on the web) to do all regular maintenance tasks.
    I've run software update. Everything is up to date.
    Any suggestions of other things I should be checking to try to improve the speed of my Macbook Pro are much appreciated.
    I find it really mystifying that performance is so noticeably worse on a brand new, much more powerful machine.
    Thanks

    Thanks for the replies.
    In re the OS, I personally don't see many significant improvements in OS 10.5. Sure, little things here and there, but major power improvements over 10.4 that should cause startup time to be slower? I don't see it. I'm surprised in the design phase Apple's software engineers would allow longer startup time (always one of their biggest selling point over the Windows world) in return for such things as being able to hit the space bar in the finder to open a document quickly. I'm not using Time Machine, for instance, so that shouldn't be slowing down startup... or at least actually loading it in functioning mode shouldn't be slowing things down.
    In re Safari, I'm doing as scientific a test as I possibly can here at home. Both computers sitting right next to each other, connected to the same network wirelessly, clicking on the same web link at exactly the same time. My 2006 Macbook is consistently faster at loading the page. Even more, it is significantly faster at loading the page to a "usable" point. For instance, if I click on the main page of the New York Times, the 2006 Macbook will load faster and will let me scroll down much earlier in the load process. On the 2009 MBP, the page shows up a few seconds slower, and it takes another few seconds more before the spinning beach ball stops and I can scroll down on the page. This is true both with Safari 3 and 4 on the MBP.
    I just find it weird that a much more powerful computer, with a "new, improved" operating system and twice the amount of RAM, is noticeably more sluggish on these really basic tasks.
    My next step is to go to the Apple store and try to compare mine to some other MBPs...
    I have issues with some developments at Apple recently. For instance, the gen 2 iPod shuffle strikes me as a perfect design. Does it need to be smaller? Moving the controls to the headset seems really weird to me, much less convenient than the old one. I know that comment is OT, I just am starting to wonder about some decisions at Apple.
    Not enough to make me complain seriously... I still vastly prefer Apple to the other options. But that sense I had for years that somebody really smart is paying attention to all these details and getting them right... that's starting to fade away for me. On the other hand, I do not have an iPhone and I think it's clear a lot of Apple's resources are going into the iPhone these days.

  • Why is Wireless G router slower than Wireless B?

    I have a wireless B router (BEFW11S4 V4) that is dropping my internet connection sometimes on a daily basis.  To restore it, I have to unplug the power and plug it back in.  It's a pain and interferes with my work, so I purchased a wireless G router (WRT54G2) to replace it.  Setting it up was quick and painless, but slowed my internet to a crawl.  I know that wireless connections are slower than wired, but a direct connection was about 10 times faster (according to several online speed tests) which I find unacceptable.
    I have since removed it and gone back to the older faulty router to restore my internet connect to a speed that at least allows me to do my work.  I was not unhappy with my connection speed before.  I only replaced the router because it was dropping the connection, but I cannot understand why the new router was so much slower.
    Any thoughts, hints, or suggestions before I return the new router to the store?
    Thanks!

    1) What Internet connection speed are you paying for?
    2) What Internet connection speed do you get when you wire your computer directly to your modem?
    3) What Internet connection speed do you get when you wire your computer to the WRT54G2?
    4) What Internet connection speed do you get through a wireless connection to the WRT54G2?
    5) Is your computer's wireless adapter a wireless b?  g?  n?
    There are many causes for poor wireless connections, and many solutions:
    First of all, give your network a unique SSID. Do not use "linksys". If you are using "linksys" you may be trying to connect to your neighbor's router. Also set "SSID Broadcast" to "enabled". This will help your computer find and lock on to your router's signal.
    Poor wireless connections are often caused by radio interference from other 2.4 GHz devices. This includes wireless phones, wireless baby monitors, microwave ovens, wireless mice and keyboards, wireless speakers, and your neighbor's wireless network. In rare cases, Bluetooth devices can interfere. Even some 5+ GHz phones also use the 2.4 Ghz band. Unplug these devices, and see if that corrects your problem.
    In your router, try a different channel. There are 11 channels in the 2.4 GHz band. Usually channel 1, 6, or 11 works best. Check out your neighbors, and see what channel they are using. Because the channels overlap one another, try to stay at least +5 or -5 channels from your strongest neighbors. For example, if you have a strong neighbor on channel 9, try any channel 1 through 4.
    Also, try to locate the router about 4 to 6 feet above the floor, in an open area. Do not locate it behind your monitor or near other computer equipment or speakers.  If you have external antenna, they should be vertical.
    Also, in the computer, go to your wireless software, and go to "Preferred Networks" (sometimes called "Profiles" ). There are probably a few networks listed. Delete any network named "linksys". Also delete any network that you do not recognize, or that you no longer use.   Delete your current network  (this will remove any old settings.)  Reboot computer.  Return to "Preferred Networks" and re-enter your current network info (SSID, encryption (if any), and key (if any) ). Then select your current network and make it your default network, and set it to automatic login. You may need to go to "settings" to do this, or you may need to right click on your network and select "Properties" or "settings".  Reboot computer.  You should connect automatically (it can take up to 2 minutes).  If you have trouble connecting, in the computer, temporarily turn off your computer software firewall, and see if that helps.
    If the above does not fix your problem, download and install the latest driver for your wireless card.
    Some users have reported improved wireless performance by switching from WEP to WPA encryption.
    If you continue to have problems, try the following:
    For wireless g routers, try setting the "Transmission Rate" to 54 Mbps.
    If you still have trouble, download and install the latest firmware for your router. After a firmware upgrade, you must reset the router to factory defaults, then setup the router again from scratch. If you saved a router configuration file, DO NOT use it.
    Hope this helps.
    Message Edited by toomanydonuts on 01-07-2009 05:14 AM

  • PreparedStatement is About 60 times slower than Statements

    I am highly suprised that in my programme a normal statement is a lot faster than a Prepared Statement. I am posting below both the Programmes, in one I am using Prepared Statements and in another I am using normal Statements. My OS is Win NT My Database is SQL Server 7. THe progamme extracts data from a file and inserts records in the database. In the test case I had A file of about 1440 records ie. 1440 inserts are made to the database, The database table is very large ie. It has around 126 Columns.
    So for inserting 1440 record froma file the Prepared Statements take around 7 Minutes . And for reading the same file and inserting the same no of records in the same database normal Statements Take only about 7 seconds. Now the JAcva docs clearly Specify that when we need to use the same stmt many times it is better to use Prepared Satements < the results that I am Getting is clear and complete violation of what java docs say.
    Here is the code with Prepared Statements
    package mps.mpsPTLF;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Calendar;
    import java.util.Date;
    import gen.genCommon.genConnectionPool.*;
    import gen.genCommon.*;
    public class PTLFProcessor
         private static clsLogFile moLogFile = new clsLogFile("");
         private gen.genCommon.genConnectionPool.SharedConnectionPool mConnPool = SharedConnectionPool.getInstance(2);
         FileReader fPTLF = null;
         BufferedReader brPTLF = null;
    //**************** Begin Constructor declaration ************************
    To intialize the class variables for new Fee
         public PTLFProcessor(String pathPTLF) throws GenException
              try
                   fPTLF = new FileReader(pathPTLF);
                   brPTLF = new BufferedReader(fPTLF);
              catch (Exception e)
                   throw new GenException("Error Accessing file : " + pathPTLF + " - " + e.toString(),e );     
    //**************** End  Constructor declaration ************************
         public void PTLFGetData() throws GenException
              char pcData[];
              int HEADERSIZE = 6;
              boolean pbEndOfFile = false;
              boolean pbisFirstBlock = true;
              int piBlocksize = 0;
              int piOffset = 0;
              int piRecordsize = 0;
              String psRecordContent = "";
              Connection pConn = null;
              try
                   String psInsSql=" INSERT INTO FILE_PTLF_IN ( " +
                                       " fpi_DAT_TIM , " +
                                       " fpi_REC_TYP , " +
                                       " fpi_CRD_LN , " +
                                       " fpi_CRD_FIID , " +
                                       " fpi_CRD_NUM , " +
                                       " fpi_MBR_NUM , " +
                                       " fpi_MER_LN , " +
                                       " fpi_MER_FIID , " +
                                       " fpi_MER_GRP , " +
                                       " fpi_MER_REGN , " +
                                       " fpi_MER_ID , " +
                                       " fpi_TERM_ID , " +
                                       " fpi_SHIFT_NUM , " +
                                       " fpi_BATCH_NUM , " +
                                       " fpi_TERM_LN , " +
                                       " fpi_TERM_FIID , " +
                                       " fpi_TERM_ID_1 , " +
                                       " fpi_TRAN , " +
                                       " fpi_TERM_ID_2 , " +
                                       " fpi_REC_FRMT , " +
                                       " fpi_MER_ID_1 , " +
                                       " fpi_CLERK_ID , " +
                                       " fpi_DATA_FLAG , " +
                                       " fpi_TYP , " +
                                       " fpi_RTE_STAT , " +
                                       " fpi_ORIGINATOR , " +
                                       " fpi_RESPONDER , " +
                                       " fpi_ISS_CDE , " +
                                       " fpi_ENTRY_TIM , " +
                                       " fpi_EXIT_TIM , " +
                                       " fpi_RE_ENTRY_TIM , " +
                                       " fpi_TRAN_DAT , " +
                                       " fpi_TRAN_TIM , " +
                                       " fpi_POST_DAT , " +
                                       " fpi_ACQ_ICHG_SETL_DAT , " +
                                       " fpi_ISS_ICHG_SETL_DAT , " +
                                       " fpi_SEQ_NUM , " +
                                       " fpi_TERM_NAME_LOC , " +
                                       " fpi_TERM_OWNER_NAME , " +
                                       " fpi_TERM_CITY , " +
                                       " fpi_TERM_ST , " +
                                       " fpi_TERM_CNTRY_CDE , " +
                                       " fpi_BRCH_ID , " +
                                       " fpi_USER_FLD2 , " +
                                       " fpi_TERM_TIM_OFST , " +
                                       " fpi_ACQ_INST_ID_NUM , " +
                                       " fpi_RCV_INST_ID_NUM , " +
                                       " fpi_TERM_TYP , " +
                                       " fpi_CLERK_ID_1 , " +
                                       " fpi_GRP , " +
                                       " fpi_USER_ID , " +
                                       " fpi_RETL_SIC_CDE , " +
                                       " fpi_ORIG , " +
                                       " fpi_DEST , " +
                                       " fpi_TC , " +
                                       " fpi_T , " +
                                       " fpi_AA , " +
                                       " fpi_C , " +
                                       " fpi_CRD_TYP , " +
                                       " fpi_ACCT , " +
                                       " fpi_RESP_CDE , " +
                                       " fpi_AMT_1 , " +
                                       " fpi_AMT_2 , " +
                                       " fpi_EXP_DAT , " +
                                       " fpi_TRACK2 , " +
                                       " fpi_PIN_OFST , " +
                                       " fpi_PRE_AUTH_SEQ_NUM , " +
                                       " fpi_INVOICE_NUM , " +
                                       " fpi_ORIG_INVOICE_NUM , " +
                                       " fpi_AUTHORIZER , " +
                                       " fpi_AUTH_IND , " +
                                       " fpi_SHIFT_NUM_1 , " +
                                       " fpi_BATCH_SEQ_NUM , " +
                                       " fpi_APPRV_CDE , " +
                                       " fpi_APPRV_CDE_LGTH , " +
                                       " fpi_ICHG_RESP , " +
                                       " fpi_PSEUDO_TERM_ID , " +
                                       " fpi_RFRL_PHONE , " +
                                       " fpi_DFT_CAPTURE_FLG , " +
                                       " fpi_SETL_FLAG , " +
                                       " fpi_RVRL_CDE , " +
                                       " fpi_REA_FOR_CHRGBCK , " +
                                       " fpi_NUM_OF_CHRGBCK , " +
                                       " fpi_PT_SRV_COND_CDE , " +
                                       " fpi_PT_SRV_ENTRY_MDE , " +
                                       " fpi_AUTH_IND2 , " +
                                       " fpi_ORIG_CRNCY_CDE , " +
                                       " fpi_AUTH_CRNCY_CDE , " +
                                       " fpi_AUTH_CONV_RATE , " +
                                       " fpi_SETL_CRNCY_CDE , " +
                                       " fpi_SETL_CONV_RATE , " +
                                       " fpi_CONV_DAT_TIM , " +
                                       " fpi_IMP_IND , " +
                                       " fpi_AVAIL_BAL , " +
                                       " fpi_LEDG_BAL , " +
                                       " fpi_AMT_ON_HOLD , " +
                                       " fpi_TTL_FLOAT , " +
                                       " fpi_CUR_FLOAT , " +
                                       " fpi_ADJ_SETL_IMPACT_FLG , " +
                                       " fpi_PBF1 , " +
                                       " fpi_PBF2 , " +
                                       " fpi_PBF3 , " +
                                       " fpi_PBF4 , " +
                                       " fpi_FRWD_INST_ID_NUM , " +
                                       " fpi_CRD_ACCPT_ID_NUM , " +
                                       " fpi_CRD_ISS_ID_NUM , " +
                                       " fpi_ORIG_MSG_TYP , " +
                                       " fpi_ORIG_TRAN_TIM , " +
                                       " fpi_ORIG_TRAN_DAT , " +
                                       " fpi_ORIG_SEQ_NUM , " +
                                       " fpi_ORIG_B24_POST_DAT , " +
                                       " fpi_EXCP_RSN_CDE , " +
                                       " fpi_OVRRDE_FLG , " +
                                       " fpi_ADDR , " +
                                       " fpi_ZIP_CDE , " +
                                       " fpi_ADDR_VRFY_STAT , " +
                                       " fpi_PIN_IND , " +
                                       " fpi_PIN_TRIES , " +
                                       " fpi_PRE_AUTH_TS_DAT , " +
                                       " fpi_PRE_AUTH_TS_TIM , " +
                                       " fpi_PRE_AUTH_HLDS_LVL , " +
                                       " fpi_USER_FLD5 , " +
                                       " fpi_LEN , " +
                                       " fpi_INFO )" +
                                       " VALUES ( " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                   pConn = mConnPool.getConnection();
                   PreparedStatement pStmt = pConn.prepareStatement(psInsSql);
                   while (!pbEndOfFile)
                        pcData = new char [HEADERSIZE];                    // Reading each Block Header
                        brPTLF.read (pcData, 0, HEADERSIZE);
                        piBlocksize = Integer.parseInt (new String (pcData));
                        piOffset = HEADERSIZE;
                        while (piOffset < piBlocksize)
                        {                      // Read the records upto end of block
                             pcData = new char [HEADERSIZE];               // Reading each Record Header
                             brPTLF.read (pcData, 0, HEADERSIZE);
                             piRecordsize = Integer.parseInt (new String (pcData));
                             piOffset += HEADERSIZE;
                             pcData = new char [piRecordsize - HEADERSIZE];     // Reading each Record Content
                             brPTLF.read (pcData, 0, piRecordsize - HEADERSIZE);
                             psRecordContent = new String (pcData);
                             piOffset += piRecordsize - HEADERSIZE;
                             moLogFile.writeToLog(psRecordContent);
                             if (pbisFirstBlock)
                                  if (!psRecordContent.startsWith ("TH"))
                                       throw new GenException ("Invalid File Format, missing 'TH'");
                                  pcData = new char [HEADERSIZE];          // Reading next Record Header
                                  brPTLF.read (pcData, 0, HEADERSIZE);
                                  piRecordsize = Integer.parseInt (new String (pcData));
                                  piOffset += HEADERSIZE;
                                  pcData = new char [piRecordsize - HEADERSIZE];// Reading next Record Content (Must be FH)
                                  brPTLF.read (pcData, 0, piRecordsize - HEADERSIZE);
                                  psRecordContent = new String (pcData);
                                  piOffset += piRecordsize - HEADERSIZE;
                                  if (!psRecordContent.startsWith ("FH"))
                                       throw new GenException ("File Header Not Found");
                                  pbisFirstBlock = false;
                             else if (psRecordContent.startsWith ("DR"))
                                  psRecordContent = psRecordContent.substring(2);
                        /*          if (psRecordContent.length() != 1820 ) // && psRecordContent.length() != 846)
                                       // insert in error table
                                       continue;
                                  if ( psRecordContent.substring(453-1, 455).equals ("000") || psRecordContent.substring(453-1, 455).equals ("001") )
                                       pStmt.setString (1, psRecordContent.substring(1-1,19));
                                       pStmt.setString (2, psRecordContent.substring(20-1,21));
                                       pStmt.setString (3, psRecordContent.substring(22-1,25));
                                       pStmt.setString (4, psRecordContent.substring(26-1,29));
                                       pStmt.setString (5, psRecordContent.substring(30-1,48));
                                       pStmt.setString (6, psRecordContent.substring(49-1,51));
                                       pStmt.setString (7, psRecordContent.substring(52-1,55));
                                       pStmt.setString (8, psRecordContent.substring(56-1,59));
                                       pStmt.setString (9, psRecordContent.substring(60-1,63));
                                       pStmt.setString (10, psRecordContent.substring(64-1,67));
                                       pStmt.setString (11, psRecordContent.substring(68-1,86));
                                       pStmt.setString (12, psRecordContent.substring(87-1,102));
                                       pStmt.setString (13, psRecordContent.substring(103-1,105));
                                       pStmt.setString (14, psRecordContent.substring(106-1,108));
                                       pStmt.setString (15, psRecordContent.substring(109-1,112));
                                       pStmt.setString (16, psRecordContent.substring(113-1,116));
                                       pStmt.setString (17, psRecordContent.substring(117-1,132));
                                       pStmt.setString (18, psRecordContent.substring(133-1,140));
                                       pStmt.setString (19, psRecordContent.substring(141-1,156));
                                       pStmt.setString (20, psRecordContent.substring(157-1,157));
                                       pStmt.setString (21, psRecordContent.substring(158-1,176));
                                       pStmt.setString (22, psRecordContent.substring(177-1,182));
                                       pStmt.setString (23, psRecordContent.substring(183-1,183));
                                       pStmt.setString (24, psRecordContent.substring(184-1,187));
                                       pStmt.setString (25, psRecordContent.substring(188-1,189));
                                       pStmt.setString (26, psRecordContent.substring(190-1,190));
                                       pStmt.setString (27, psRecordContent.substring(191-1,191));
                                       pStmt.setString (28, psRecordContent.substring(192-1,193));
                                       pStmt.setString (29, psRecordContent.substring(194-1,212));
                                       pStmt.setString (30, psRecordContent.substring(213-1,231));
                                       pStmt.setString (31, psRecordContent.substring(232-1,250));
                                       pStmt.setString (32, psRecordContent.substring(251-1,256));
                                       pStmt.setString (33, psRecordContent.substring(257-1,264));
                                       pStmt.setString (34, psRecordContent.substring(265-1,270));
                                       pStmt.setString (35, psRecordContent.substring(271-1,276));
                                       pStmt.setString (36, psRecordContent.substring(277-1,282));
                                       pStmt.setString (37, psRecordContent.substring(283-1,294));
                                       pStmt.setString (38, psRecordContent.substring(295-1,319));
                                       pStmt.setString (39, psRecordContent.substring(320-1,341));
                                       pStmt.setString (40, psRecordContent.substring(342-1,354));
                                       pStmt.setString (41, psRecordContent.substring(355-1,357));
                                       pStmt.setString (42, psRecordContent.substring(358-1,359));
                                       pStmt.setString (43, psRecordContent.substring(360-1,363));
                                       pStmt.setString (44, psRecordContent.substring(364-1,366));
                                       pStmt.setString (45, psRecordContent.substring(367-1,371));
                                       pStmt.setString (46, psRecordContent.substring(372-1,382));
                                       pStmt.setString (47, psRecordContent.substring(383-1,393));
                                       pStmt.setString (48, psRecordContent.substring(394-1,395));
                                       pStmt.setString (49, psRecordContent.substring(396-1,401));
                                       pStmt.setString (50, psRecordContent.substring(402-1,405));
                                       pStmt.setString (51, psRecordContent.substring(406-1,413));
                                       pStmt.setString (52, psRecordContent.substring(414-1,417));
                                       pStmt.setString (53, psRecordContent.substring(418-1,421));
                                       pStmt.setString (54, psRecordContent.substring(422-1,425));
                                       pStmt.setString (55, psRecordContent.substring(426-1,427));
                                       pStmt.setString (56, psRecordContent.substring(428-1,428));
                                       pStmt.setString (57, psRecordContent.substring(429-1,430));
                                       pStmt.setString (58, psRecordContent.substring(431-1,431));
                                       pStmt.setString (59, psRecordContent.substring(432-1,433));
                                       pStmt.setString (60, psRecordContent.substring(434-1,452));
                                       pStmt.setString (61, psRecordContent.substring(453-1,455));
                                       pStmt.setString (62, psRecordContent.substring(456-1,474));
                                       pStmt.setString (63, psRecordContent.substring(475-1,493));
                                       pStmt.setString (64, psRecordContent.substring(494-1,497));
                                       pStmt.setString (65, psRecordContent.substring(498-1,537));
                                       pStmt.setString (66, psRecordContent.substring(538-1,553));
                                       pStmt.setString (67, psRecordContent.substring(554-1,565));
                                       pStmt.setString (68, psRecordContent.substring(566-1,575));
                                       pStmt.setString (69, psRecordContent.substring(576-1,585));
                                       pStmt.setString (70, psRecordContent.substring(586-1,601));
                                       pStmt.setString (71, psRecordContent.substring(602-1,602));
                                       pStmt.setString (72, psRecordContent.substring(603-1,605));
                                       pStmt.setString (73, psRecordContent.substring(606-1,608));
                                       pStmt.setString (74, psRecordContent.substring(609-1,616));
                                       pStmt.setString (75, psRecordContent.substring(617-1,617));
                                       pStmt.setString (76, psRecordContent.substring(618-1,625));
                                       pStmt.setString (77, psRecordContent.substring(626-1,629));
                                       pStmt.setString (78, psRecordContent.substring(630-1,649));
                                       pStmt.setString (79, psRecordContent.substring(650-1,650));
                                       pStmt.setString (80, psRecordContent.substring(651-1,651));
                                       pStmt.setString (81, psRecordContent.substring(652-1,653));
                                       pStmt.setString (82, psRecordContent.substring(654-1,655));
                                       pStmt.setString (83, psRecordContent.substring(656-1,656));
                                       pStmt.setString (84, psRecordContent.substring(657-1,658));
                                       pStmt.setString (85, psRecordContent.substring(659-1,661));
                                       pStmt.setString (86, psRecordContent.substring(662-1,662));
                                       pStmt.setString (87, psRecordContent.substring(663-1,665));
                                       pStmt.setString (88, psRecordContent.substring(666-1,668));
                                       pStmt.setString (89, psRecordContent.substring(669-1,676));
                                       pStmt.setString (90, psRecordContent.substring(677-1,679));
                                       pStmt.setString (91, psRecordContent.substring(680-1,687));
                                       pStmt.setString (92, psRecordContent.substring(688-1,706));
                                       pStmt.setString (93, psRecordContent.substring(707-1,707));
                                       pStmt.setString (94, psRecordContent.substring(708-1,708));
                                       pStmt.setString (95, psRecordContent.substring(709-1,709));
                                       pStmt.setString (96, psRecordContent.substring(710-1,710));
                                       pStmt.setString (97, psRecordContent.substring(711-1,711));
                                       pStmt.setString (98, psRecordContent.substring(712-1,712));
                                       pStmt.setString (99, psRecordContent.substring(713-1,713));
                                       pStmt.setString (100, psRecordContent.substring(714-1,714));
                                       pStmt.setString (101, psRecordContent.substring(715-1,715));
                                       pStmt.setString (102, psRecordContent.substring(716-1,716));
                                       pStmt.setString (103, psRecordContent.substring(717-1,717));
                                       pStmt.setString (104, psRecordContent.substring(718-1,728));
                                       pStmt.setString (105, psRecordContent.substring(729-1,739));
                                       pStmt.setString (106, psRecordContent.substring(740-1,750));
                                       pStmt.setString (107, psRecordContent.substring(751-1,754));
                                       pStmt.setString (108, psRecordContent.substring(755-1,762));
                                       pStmt.setString (109, psRecordContent.substring(763-1,766));
                                       pStmt.setString (110, psRecordContent.substring(767-1,778));
                                       pStmt.setString (111, psRecordContent.substring(779-1,782));
                                       pStmt.setString (112, psRecordContent.substring(783-1,785));
                                       pStmt.setString (113, psRecordContent.substring(786-1,786));
                                       pStmt.setString (114, psRecordContent.substring(787-1,806));
                                       pStmt.setString (115, psRecordContent.substring(807-1,815));
                                       pStmt.setString (116, psRecordContent.substring(816-1,816));
                                       pStmt.setString (117, psRecordContent.substring(817-1,817));
                                       pStmt.setString (118, psRecordContent.substring(818-1,818));
                                       pStmt.setString (119, psRecordContent.substring(819-1,824));
                                       pStmt.setString (120, psRecordContent.substring(825-1,832));
                                       pStmt.setString (121, psRecordContent.substring(833-1,833));
                                       pStmt.setString (122, psRecordContent.substring(834-1,866));
                                       pStmt.setString (123, psRecordContent.substring(867-1,870));
                                       pStmt.setString (124, psRecordContent.substring(871-1,1070));
                             //          if (pStmt.executeUpdate() != 1)
                             //               throw new GenException ("Insertion failed");
                                            String psMsgType = psRecordContent.substring (184-1, 187);
                                            if (true)//updateTable (conn, pstmt, pstmt1, pstmt2, psRecordContent, out, bw))
                                                 if (psMsgType.equals ("0500") || psMsgType.equals ("0520"))
                                                           //piSettlementDR++;
                                                 if (psMsgType.equals ("0210"))
                                                           //piUpdatedDR++;
                                                 if (psMsgType.equals ("0220") || psMsgType.equals ("0320") || psMsgType.equals ("0420"))
                                                      //reversalDR++;
                                                 //validDR++;
                                  //totalDR++;
                             else if (psRecordContent.startsWith ("FT"))
                                  pcData = new char [HEADERSIZE];     // Reading next Record Header
                                  brPTLF.read (pcData, 0, HEADERSIZE);
                                  piRecordsize = Integer.parseInt (new String (pcData));
                                  piOffset += HEADERSIZE;
                                  pcData = new char [piRecordsize - HEADERSIZE];// Reading next Record Content (Must be TT)
                                  brPTLF.read (pcData, 0, piRecordsize - HEADERSIZE);
                                  psRecordContent = new String (pcData);
                                  piOffset += piRecordsize - HEADERSIZE;
                                  if (!psRecordContent.startsWith ("TT"))
                                       throw new GenException ("Total Trailer not Found.");
                                  pbEndOfFile = true;
                        } // while (piOffset < piBlocksize)
                   } // while (!pbEndOfFile)
                   brPTLF.close();
                   fPTLF.close();
                   pStmt.close();
              catch (Exception e)
                   moLogFile.printStackTrace(e);
              finally
                   mConnPool.free(pConn);
         public static void main(String args[])
              try
                   PTLFProcessor test=new PTLFProcessor("c:\\test.txt");
                   test.PTLFGetData();
              catch (Exception e)
                   clsLogFile.printStackTrace(e);
    }Here is the code with Normal statements
    //package mps.mpsPTLF;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.util.Calendar;
    import java.util.Date;
    import gen.genCommon.genConnectionPool.*;
    import gen.genCommon.*;
    public class PTLFProcessor1
         private static clsLogFile moLogFile = new clsLogFile("");
         private gen.genCommon.genConnectionPool.SharedConnectionPool mConnPool = SharedConnectionPool.getInstance(2);
         FileReader fPTLF = null;
         BufferedReader brPTLF = null;
    //**************** Begin Constructor declaration ************************
    To intialize the class variables for new Fee
         public PTLFProcessor1(String pathPTLF) throws GenException
              try
                   fPTLF = new FileReader(pathPTLF);
                   brPTLF = new BufferedReader(fPTLF);
              catch (Exception e)
                   throw new GenException("Error Accessing file : " + pathPTLF + " - " + e.toString(),e );     
    //**************** End  Constructor declaration ************************
         public void PTLFGetData() throws GenException
              char pcData[];
              int HEADERSIZE = 6;
              boolean pbEndOfFile = false;
              boolean pbisFirstBlock = true;
              int piBlocksize = 0;
              int piOffset = 0;
              int piRecordsize = 0;
              String psRecordContent = "";
              Connection pConn = null;
              int cnt=0;
              try
                   String psInsSql=" INSERT INTO FILE_PTLF_IN ( " +
                                       " fpi_DAT_TIM , " +
                                       " fpi_REC_TYP , " +
                                       " fpi_CRD_LN , " +
                                       " fpi_CRD_FIID , " +
                                       " fpi_CRD_NUM , " +
                                       " fpi_MBR_NUM , " +
                                       " fpi_MER_LN , " +
                                       " fpi_MER_FIID , " +
                                       " fpi_MER_GRP , " +
                                       " fpi_MER_REGN , " +
                                       " fpi_MER_ID , " +
                                       " fpi_TERM_ID , " +
                                       " fpi_SHIFT_NUM , " +
                                       " fpi_BATCH_NUM , " +
                                       " fpi_TERM_LN , " +
                                       " fpi_TERM_FIID , " +
                                       " fpi_TERM_ID_1 , " +
                                       " fpi_TRAN , " +
                                       " fpi_TERM_ID_2 , " +
                                       " fpi_REC_FRMT , " +
                                       " fpi_MER_ID_1 , " +
                                       " fpi_CLERK_ID , " +
                                       " fpi_DATA_FLAG , " +
                                       " fpi_TYP , " +
                                       " fpi_RTE_STAT , " +
                                       " fpi_ORIGINATOR , " +
                                       " fpi_RESPONDER , " +
                                       " fpi_ISS_CDE , " +
                                       " fpi_ENTRY_TIM , " +
                                       " fpi_EXIT_TIM , " +
                                       " fpi_RE_ENTRY_TIM , " +
                                       " fpi_TRAN_DAT , " +
                                       " fpi_TRAN_TIM , " +
                                       " fpi_POST_DAT , " +
                                       " fpi_ACQ_ICHG_SETL_DAT , " +
                                       " fpi_ISS_ICHG_SETL_DAT , " +
                                       " fpi_SEQ_NUM , " +
                                       " fpi_TERM_NAME_LOC , " +
                                       " fpi_TERM_OWNER_NAME , " +
                                       " fpi_TERM_CITY , " +
                                       " fpi_TERM_ST , " +
                                       " fpi_TERM_CNTRY_CDE , " +
                                       " fpi_BRCH_ID , " +
                                       " fpi_USER_FLD2 , " +
                                       " fpi_TERM_TIM_OFST , " +
                                       " fpi_ACQ_INST_ID_NUM , " +
                                       " fpi_RCV_INST_ID_NUM , " +
                                       " fpi_TERM_TYP , " +
                                       " fpi_CLERK_ID_1 , " +
                                       " fpi_GRP , " +
                                       " fpi_USER_ID , " +
                                       " fpi_RETL_SIC_CDE , " +
                                       " fpi_ORIG , " +
                                       " fpi_DEST , " +
                                       " fpi_TC , " +
                                       " fpi_T , " +
                                       " fpi_AA , " +
                                       " fpi_C , " +
                                       " fpi_CRD_TYP , " +
                                       " fpi_ACCT , " +
                                       " fpi_RESP_CDE , " +
                                       " fpi_AMT_1 , " +
                                       " fpi_AMT_2 , " +
                                       " fpi_EXP_DAT , " +
                                       " fpi_TRACK2 , " +
                                       " fpi_PIN_OFST , " +
                                       " fpi_PRE_AUTH_SEQ_NUM , " +
                                       " fpi_INVOICE_NUM , " +
                                       " fpi_ORIG_INVOICE_NUM , " +
                                       " fpi_AUTHORIZER , " +
                                       " fpi_AUTH_IND , " +
                                       " fpi_SHIFT_NUM_1 , " +
                                       " fpi_BATCH_SEQ_NUM , " +
                                       " fpi_APPRV_CDE , " +
                                       " fpi_APPRV_CDE_LGTH , " +
                                       " fpi_ICHG_RESP , " +
                                       " fpi_PSEUDO_TERM_ID , " +
                                       " fpi_RFRL_PHONE , " +
                                       " fpi_DFT_CAPTURE_FLG , " +
                                       " fpi_SETL_FLAG , " +
                                       " fpi_RVRL_CDE , " +
                                       " fpi_REA_FOR_CHRGBCK , " +
                                       " fpi_NUM_OF_CHRGBCK , " +
                                       " fpi_PT_SRV_COND_CDE , " +
                                       " fpi_PT_SRV_ENTRY_MDE , " +
                                       " fpi_AUTH_IND2 , " +
                                       " fpi_ORIG_CRNCY_CDE , " +
                                       " fpi_AUTH_CRNCY_CDE , " +
                                       " fpi_AUTH_CONV_RATE , " +
                                       " fpi_SETL_CRNCY_CDE , " +
                                       " fpi_SETL_CONV_RATE , " +
                                       " fpi_CONV_DAT_TIM , " +
                                       " fpi_IMP_IND , " +
                                       " fpi_AVAIL_BAL , " +
                                       " fpi_LEDG_BAL , " +
                                       " fpi_AMT_ON_HOLD , " +
                                       " fpi_TTL_FLOAT , " +
                                       " fpi_CUR_FLOAT , " +
                                       " fpi_ADJ_SETL_IMPACT_FLG , " +
                                       " fpi_PBF1 , " +
                                       " fpi_PBF2 , " +
                                       " fpi_PBF3 , " +
                                       " fpi_PBF4 , " +
                                       " fpi_FRWD_INST_ID_NUM , " +
                                       " fpi_CRD_ACCPT_ID_NUM , " +
                                       " fpi_CRD_ISS_ID_NUM , " +
                                       " fpi_ORIG_MSG_TYP , " +
                                       " fpi_ORIG_TRAN_TIM , " +
                                       " fpi_ORIG_TRAN_DAT , " +
                                       " fpi_ORIG_SEQ_NUM , " +
                                       " fpi_ORIG_B24_POST_DAT , " +
                                       " fpi_EXCP_RSN_CDE , " +
                                       " fpi_OVRRDE_FLG , " +
                                       " fpi_ADDR , " +
                                       " fpi_ZIP_CDE , " +
                                       " fpi_ADDR_VRFY_STAT , " +
                                       " fpi_PIN_IND , " +
                                       " fpi_PIN_TRIES , " +
                                       " fpi_PRE_AUTH_TS_DAT , " +
                                       " fpi_PRE_AUTH_TS_TIM , " +
                                       " fpi_PRE_AUTH_HLDS_LVL , " +
                                       " fpi_USER_FLD5 , " +
                                       " fpi_LEN , " +
                                       " fpi_INFO )" +
                                       " VALUES ";
                                       ( " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                                       " ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, " +
                   pConn = mConnPool.getConnection();
                   Statement Stmt=pConn.createStatemen                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Dear Sir,
    The problem with the prepared statement is that it gets prepared once the compilation is over and the program is running in memory, what effectively this means is that at the compilation time the process of putting togather the statement has been discounted and while compiling , only the javac or compiler is in memory while at runtime the user input is required so streams are in memory and also the JVM and obviously your code.
    Anyways java is a little slower than other languages and processes your code as and when user interacts with code so it is not the fastest it you want to make it perform calculations or accept user input or as in ur case prepareStatement.
    your normal SQL statement is taken care of at compile time and is therefore faster.
    regards,
    [email protected]

Maybe you are looking for

  • Need help identifying effect in RH8

    Hello! I recently installed RH8. I was looking at the Help (Adobe Help Viewer 2) and found a cool effect in the Help that I would like to use in my project, but I'm not sure what it is. It looks a bit like a DHTML drop-down hotspot, except the hotspo

  • Can't get iPhone 5 recording to work using Quicktime on Yosemite

    QuickTime on Yosemite now has this nifty feature where you can record your iPhone, provided you connect it using a lightning cable. Now I've done all that, but when I open QuickTime and select my iPhone from the dropdown menu next to the record butto

  • Opening multiple document in single instance (window)

    Someone here mentioned this: "Acrobat 9 no longer supports opening multiple documents in the same window." This is disappointing.. does anyone know the workaround / hack? Running Acrobat 9 Standard. Thanks, Devin

  • Please Help me A S AP

    Hi ,    I have a strange issue Raised by user.There is a Material which is marked for deletion at a Plant Level.The same material is maintained in one more plant aswell.The thing is when the user is trying to raise  an Order(MAKE TO ORDER) the delive

  • Pdf Presentation

    Just upgraded from cs2 to cs5, where the heck is pdf presentation at? (company made me) (expected to do the same things in cs5 that i did in cs2 and they removed cs2) Don't tell me use bridge, cause it don't work. (doesn't embed fonts or vector data)