Table scans from application - Page 2
DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Table scans from application

  1. #11
    Join Date
    Aug 2012
    Posts
    9
    Hi Paul,

    One thing I don't understand is when I run the same delete statement with the Bind Variable ( different values) in Toad or sqlplus, the delete's are quick and the index is being used. But from the application it takes > 20-30 seconds . I asked the developer if the datatype of the bind variable was same as the indexed column and he confirmed it. Is there something we need to check in the application code.

    Thanks,

    SK

  2. #12
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    When executing from SQLPlus... are you actually using a bind variable or are you using a literal? e.g. the actual value?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #13
    Join Date
    Aug 2012
    Posts
    9
    using bind variable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width