The binding is 60 times slower than compromising

Hello

I have a fairly serious problem using Toplink liaison. My setup is

TopLink 9.0.4.5
Oracle 10g EE 10.2.0.4.0 (64-bit, partitioning options, Data Mining and Real Application Testing)
Oracle JDBC Thin (11.2.0.1.0 or 10.2.0.4.0) driver

running in a Tomcat 5.5 environment.

Our usual configuration is with BindAllParameters = 'true', which is well in 99% of cases. But in a special case, which is the search functionality of our application (insurance agents management application),
a SQL is about 60 times slower with a binding, that without binding. I enclose the SQL at the end of the message, but what is quite special about it is that it uses a large amount of 'IN' clauses. I found an older version
display indicating that Toplink (or Oracle JDBC) has a problem with IN-clauses and binding. Can anyone confirm this?

As I said, the SQL part of a people search feature, so there are a lot of variants. Not all variations exhibit this behavior, so I guess, that Oracle probably uses different execution plans for the use of prepared statements or direct execution. Someone can he also confirm?

Finally, is it possible to record the execution inside the Tomcat application plan?

Thanks in advance for any help, as I said earlier, this problem is currently very critical, since we are 2 weeks before production,

Thorsten.

Here's the SQL example (with the bind variable already replaced):
/* Formatted on 2010/02/08 10:27 (Formatter Plus v4.8.8) */
SELECT t0.partner_id
  FROM aidatint.papartner t0
 WHERE (    (    (    (    (   (    (t0.schwebe_kz = 'S')
                                AND (t0.aktgfid_rid = '126562119515400004')
                               )
                            OR (    (t0.schwebe_kz = 'O')
                                AND (t0.aktgfid_rid <> '126562119515400004')
                               )
                           )
                       AND (   (t0.gueltigbis_dt IS NULL)
                            OR (t0.gueltigvon_dt < t0.gueltigbis_dt)
                           )
                      )
                  AND (t0.mcname_txt = 'MEIER')
                 )
             AND (t0.partner_id IN (
                     SELECT DISTINCT t1.partner_id
                                FROM aidatint.paadresse t1
                               WHERE (    (    (   (    (t1.schwebe_kz = 'S'
                                                        )
                                                    AND (t1.aktgfid_rid =
                                                            '126562119515400004'
                                                        )
                                                   )
                                                OR (    (t1.schwebe_kz = 'O'
                                                        )
                                                    AND (t1.aktgfid_rid <>
                                                            '126562119515400004'
                                                        )
                                                   )
                                               )
                                           AND (   (t1.gueltigbis_dt IS NULL
                                                   )
                                                OR (t1.gueltigvon_dt <
                                                              t1.gueltigbis_dt
                                                   )
                                               )
                                          )
                                      AND (t1.mcort_txt = 'KOELN')
                                     ))
                 )
            )
        AND (t0.partner_id IN (
                SELECT t2.partner_id
                  FROM aidatint.paparolle t2
                 WHERE (    (    (    (   (    (t2.schwebe_kz = 'S')
                                           AND (t2.aktgfid_rid =
                                                          '126562119515400004'
                                               )
                                          )
                                       OR (    (t2.schwebe_kz = 'O')
                                           AND (t2.aktgfid_rid <>
                                                          '126562119515400004'
                                               )
                                          )
                                      )
                                  AND (    (t2.gueltigvon_dt <=
                                               TO_DATE ('20100208',
                                                        'YYYYMMDD')
                                           )
                                       AND (   (t2.gueltigbis_dt >
                                                   TO_DATE ('20100208',
                                                            'YYYYMMDD'
                                                           )
                                               )
                                            OR (t2.gueltigbis_dt IS NULL)
                                           )
                                      )
                                 )
                             AND (t2.geschobjtyp_typ = 'VMVT')
                            )
                        AND (t2.goid_id IN (
                                SELECT t3.vermittlervertragid_id
                                  FROM aidatint.prvvsvermittlervertrag t3
                                 WHERE (    (   (    (t3.schwebe_kz = 'S')
                                                 AND (t3.aktgfid_rid =
                                                          '126562119515400004'
                                                     )
                                                )
                                             OR (    (t3.schwebe_kz = 'O')
                                                 AND (t3.aktgfid_rid <>
                                                          '126562119515400004'
                                                     )
                                                )
                                            )
                                        AND (t3.kumulnr_txt IN (
                                                SELECT t4.bereichsnr_txt
                                                  FROM aidatint.prvvsstrukturangausdienst t4
                                                 WHERE (    (    (   (    (t4.schwebe_kz =
                                                                              'S'
                                                                          )
                                                                      AND (t4.aktgfid_rid =
                                                                              '126562119515400004'
                                                                          )
                                                                     )
                                                                  OR (    (t4.schwebe_kz =
                                                                              'O'
                                                                          )
                                                                      AND (t4.aktgfid_rid <>
                                                                              '126562119515400004'
                                                                          )
                                                                     )
                                                                 )
                                                             AND (    (t4.gueltigvon_dt <=
                                                                          TO_DATE
                                                                             ('20100208',
                                                                              'YYYYMMDD'
                                                                             )
                                                                      )
                                                                  AND (   (t4.gueltigbis_dt >
                                                                              TO_DATE
                                                                                 ('20100208',
                                                                                  'YYYYMMDD'
                                                                                 )
                                                                          )
                                                                       OR (t4.gueltigbis_dt IS NULL
                                                                          )
                                                                      )
                                                                 )
                                                            )
                                                        AND (t4.schluessel_txt LIKE
                                                                '##TH###1###4%'
                                                            )
                                                       ))
                                            )
                                       ))
                            )
                       ))
            )
       )

You can disable the binding at the application level.

On your TopLink DatabaseQuery (ReadAllQuery) do.

query.setShouldBindAllParameters (false);

Tags: Fusion Middleware

Similar Questions

  • Why is the order of 100 times slower than ibrsp with driver vs 1.7 2.3?



  • 9 times slower than directly from whatz PP 2014 (PC) upward exports SOUL 2014?

    SOUL 2014 H.264 exports is 9 times slower that directly from 2014 PP. I also tried encoding 2 dvd & it's all too slow

    (PC)

    6 core i7 970 3.2 intel, Nvidia GTX 570, 24 GB of ram, raid 0, win 7 service pack 1 64-bit

    CS6 SOUL & CC work very well but 2014 is a slug! Is this a bug?

    Thanks for responding. I realized that my gtx 570 needed a updated driver... That fixed it.

  • Windows xp cpu benchmarks more than three times slower than on windows 7 running on my i5 760 image

    I ran cpu benchmarks under xp on a pent. 4 @ 3 GHz and an i5 quad processor. @ 2.9 ghz and got almost the same results.

    However when I run the same test on the i5 quad. processor the platform of windows 7, I get 3.5 times the speed.

    It seems to me the xp runs only on a single core i5 quad.  I also understand that taskmanger XP has a

    additional oppition called 'set afinity' when you right click on a process and run multi cores or processors. This isn't there?

    My question is how to make xp to use all 4 cores. It should be quick blazeing and it's not. And while windows 7 is really

    most enjoyable of my software does not work on it. I need my xp and it wouldn't hurt if it was really fast.

    Hi carlcrone,

    What version of Service Pack is installed on your computer?

    Windows XP supports quad core processors. I recommend you to ask your question to TechNet for assistance.

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

    In Windows 7, you can try to run the software in compatibility mode & check if it works.

    For more information, please visit: make older programs run in this version of Windows

    For faster access to the internet, you can also try to upgrade to Internet Explorer 9.

    For more information, please visit: How to install or uninstall Internet Explorer 9?

    Hope the helps of information.

    Please post back and we do know.

  • I've recently updated to El captain and now my Mac (which is quite old) is slow dreafully.  Take everything 10 times more than before.  Any tips on speeding to the top?

    I've recently updated to El captain and now my Mac (which is quite old) is slow dreafully.  Take everything 10 times more than before.  Any tips on speeding to the top?

    I have two Macs running El Capitan, which is old enough (2008 iMac) and am not at all have this problem. If you look through these forums, you will find that many of the slow running issues have been resolved simply by getting rid of the 3rd party anti virus and Mac apps from cleaning. Here, the consensus seems to be that these applications are useless on Macs and slow them down at best and are downright harmful in the worst case. I have none of them on any of my Macs and you have never run in the problems of virus or malware from OS X launch back to 1999. My advice would be to uninstall everything these programs from your Mac and see if that helps. And don't bother to re install later. You do not claim them, particularly the so-called cleaners. OS X does this work by himself.

    Rick

  • Cannot use the calendar network unavailable or slow app. The application takes more time to load than expected.

    When you use iCloud on my iMac I get the message "network unavailable or slow. The application takes more time to load than expected. "This has been the case for several hours, but other applications I use (Mail, Contacts, Notes, reminders), all seem to work well.  The

    I have the same message when I try to load the reminders in iCloud. All other applications work correctly. This issue has been ongoing for about a month now.

    Have this problem on my work computer running Windows 7 SP1 Pro and Macbook Air late 2009 w / OS X 10.11

  • If I buy a T-Mobile unlocked iphone7, can I use the sim card by carrier other than T-mobile on the iphone7? Because I travel abroad from time to time, I wonder if the unlocked Tmobile iphone7 accept any sim card when I am abroad

    If I buy a T-Mobile unlocked iphone7, can I use the sim card by carrier other than T-mobile on the iphone7? Because I travel abroad from time to time, I need to use another sim card when I'm outside of US. So if I order a T-mobile unlocked iphone7, he will accept my sim card from a foreign carrier? In addition, he will accept my 2nd sim card which is Sprint (my sprint sim card is not related to a device)?

    An unlocked iPhone for use with any compatible GSM carrier.

    Sprint is NOT a GSM carrier. They are a CDMA carrier.

  • Hi, can I connect the machine to the time more than a mac?

    Hi, can I connect the machine to the time more than a mac?

    Yes. Each time backwards Machine until will settle on the Time Capsule in a separate file.

  • Performance of the hard drive, runs at 30% all the time; slow response

    Pavilion Slimline works 30% all the time, slow at times, all the time. Run the Task Manager, identified all of the questions.

    Defragmentation, historical, navigation can be run. Registry cleaner also run.

    Still slow responses,

    Suspect still running games, must stop them, as well as other unnecessary programs.

    Any suggestions, useful, believe, this will solve the problem and improve poor performance.

    Thank you for the comprehensive answer. If the speed is the main problem now, theoretically, upgrading the hard drive would be able to increase the speed up to a point. Of course, this would impact speed of normal programs, programs on the web, etc. I also carefully read the document provided Red Rose, and although it is informative, I don't know about most in this paper has been tried.

    Regarding the age of the laptop, age obviously decreases the computer's full performance, and you have little control over this, unless you buy another computer.

    I have an idea of how research and troubleshooting have achieved you, but it is only an idea. I'll link some documents with information that you may or may not be useful:

    http://Windows.Microsoft.com/en-CA/Windows-8/improve-performance-optimizing-hard-drive

    http://itzkumar.WordPress.com/2010/07/03/10-ways-to-increase-hard-disk-life-and-performance/

    Let me know if you have any other questions, and I'll do my best to help you.

    Mario

  • Guest WiFi network much slower than normal on the network

    Speedtests leave a device attached to the 5 GHz wireless guest network are much slower than when the same device is connected to the normal 5 GHz WiFi.

    I measured reproducible all about 7ms 18/10 down on the network of comments and 1ms 320/250 Mbps on the normal network. Same place, same camera, same speedtest app, same test server.

    Similar results of multiple devices (laptop, Windows, iPhone 6 s). No change after a reboot. QoS is off. Firmware is 1.0.6.28_1.1.83.

    What could be the reason? I don't think that I had the same problems a few months ago, but I has not changed settings since then, except for the upgrade of the firmware when a new version appeared.

    Thanks for your advice.

    that version was pulled and pulling FW rarely happens... back having previously worked FW

  • 2 x Satellite A350-22z but that is slower than the other

    My homefriend and I same computer laptop Toshiba A350-22z but my laptop slower than others.
    I hope that the problem is the highest frequency; mine is %32 other is 100%

    http://img4.imageshack.us/img4/7532/39490208.jpg

    What is the problem in your opinion?

    Hi erdemrek,
    I don't see what exactly is the problem you are talking about but:
    If you have the same processor, the same amount of ram, same brand, model, same installation then everything should be the same.
    What do you mean "more frequently" unfortunately I don't speak your language to that effect, I can't read the text on your image.
    If you test the speed of the machine to be sure to use the same utility (benchmark).
    load on a system differs depending on the services and applications launched and running.
    could you give some more information about this problem?

    as a first step, you can try to change the hard drive and see if there is no change. If it's a software problem, it should appear on the other machine as well when changing the hard drive.

  • I opened my Windows Live Hotmail account, some time earlier than in March 2006. I lost all my old mails cached in the Inbox and Outbox before 2006.

    I opened my Hotmail account, some time earlier than in March 2006. I lost all my old mails cached in the Inbox and Outbox before 2006. I was wondering if I could pick the old mails th.

    Hello

    Windows Live products have their own support forums group.

    Please see the post below for the links to support for all popular Microsoft e-mail programs.

    Where can I get help with my questions by e-mail? (Windows 7)-Microsoft Answers:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/where-do-i-get-help-with-my-email-questions/461490c7-302b-4cc8-bcd9-127e177d71c3

    Concerning

  • square pulse time rather than the sampling frequency and size dependent frequency

    Anyone know if it is possible to create a pulse square with its dependent on the frequency at the time rather than the sampling frequency and size?

    for example if I set the frequency to 10. That means 10 pulses per second.

    rather than having to set the sampling rate and use the equation

    frequency = [(# of cycles) * (sampling frequency)] / sample size

    Thanks in advance. a photo of the block diagram would be grateful if possible

    NVM, that I solved it

  • My PC's performance is very hard hit. The PC was formatted 3 times less than a month.

    My PC's performance is very hard hit. The PC was formatted 3 times less than a month. Please suggest what to do. Run all the anti virus help? If so, please send url to download.

    Friday, October 8, 2010, 06:22:51 + 0000, shahidwin wrote:

    My PC's performance is very hard hit. The PC was formatted 3 times less than a month.

    Reformatting and reinstalling Windows because you meet one
    problem is almost always a very bad thing to do.
    With a minimum of care, it should never be necessary to reinstall
    Windows (XP or any other version). I ran Windows 3.0, 3.1, WFWG
    3.11, Windows 95, Windows 98, Windows 2000, Windows XP, Windows Vista,.
    and now Windows 7, each for the period of time before the next release
    came out, and each on two or more machines here. I never reinstalled
    None of them, and I've never had anything more than an occasional
    minor problem.
    I am convinced that this erroneous notion comes from the technique
    support people in most of the major OEMs. Their solution to almost
    no problem, they do not know quickly the answer to is "reformat and.
    replace. "This is the ideal solution for them. It gets down you the
    Phone quickly, it almost always works, and it does not require a
    make a real troubleshooting (a skill that most of them are obviously not
    own in any great degree).

    But it leaves you with all the work and all the problems. You have to
    restore all backups of your data, you need to reinstall all your
    programs, you must reinstall all Windows and application
    updates, you must locate and install all the drivers needed to
    your system, you must recustomize Windows and all your applications to work
    the way you are comfortable with.

    In addition to all these things being long and painful, you can
    have trouble with some of them: you will find all your CDs application?
    You will find all the necessary installation codes? Do you have any data
    backups to restore? Do you remember yet all customizations and
    tweaks can be installed to make everything work the way that you
    as? Sometimes there are problems that are so difficult to solve
    that Windows has to be reinstalled properly. But they are few and far
    between the two; resettlement should not be a substitute to the
    Troubleshooting; It should be a last resort, to be made only after all
    troubleshooting by qualified person other attempts have failed.
    And perhaps most important: If you reformat and reinstall without
    Discover what caused your problem, you will likely repeat the
    behavior that caused and quickly find you exactly backward in the
    same situation.

    That last paragraph above apply in your case.

    Please suggest what to do. Run all the anti virus help? If so, please send url to download.

    Do you run any anti-virus program? And no anti-spyware programs be?
    It is certainly the reason for your problems. You are infected
    by malicious software.

    For an anti-virus program, I recommend eSet NOD32, if you're ready
    to pay for it. If you want a free anti-virus, I recommend one (are not
    run several) of the following three:
     
    Avira AntiVir
    Avast
    Microsoft Security Essentials
     
    You also need anti-spyware software. I recommend that you download and
    (both freeware) to install MalwareBytes AntiMalware and
    SuperAntiSpyware.

    Ken Blake (MS-MVP)

  • When buying individual images rather than a subscription, is it possible to buy images in a library at the same time, rather than just one at a time?

    When buying individual images rather than a subscription, is it possible to buy images in a library at the same time, rather than just one at a time?

    Unfortunately not - it must be done one at a time.

    Thank you

    Bev

Maybe you are looking for

  • It is not possible to boot from the CD bootable on Satellite S5200-902

    Hello I have a Satellite S5200-902 and it was really good to use for me actually... Once I received a system error message and might start Windows more. Anyway... I tried to reinstall the OS, but I can't boot from the recovery CD. The CD is ok becaus

  • Satellite L50-B-1NM - weak WIFI signal

    Hello world Had this laptop for my daughter yesterday and he struggles to see wireless networks. I will only see the wireless network if it is right next to him, but even in this case the signal falls and then can't see anything. I tried two differen

  • No sound in Windows XP on Satellite A300-1EG

    Well, I'm in trouble, and that bothers me. I can't install my soundcard on Satellite A300-1EG. (I have the same notebook)I kill Vista and installed XPSP2, is gone to Toshiba official downloads, got sound and chipset drivers, but sound card still does

  • Magic Mouse 2 is not scrolling

    I just bought a Magic Mouse 2, and when I drag my fingers on it as indicated to scroll, it does not scroll vertically or horizontally. I read the instructions, watched videos... nothing. Check the settings and everything. Please help me fix it!

  • My pc hp nc 6120 but win8 no driver

    Hi, my computer hp nc 6120 laptop. My computer laptop installation winxp and win7 driver of success. But 8 victory do not chart pilot :/ help please. I can't speak English thanks my e mail: [email protected]