• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to validate that the query is performing

 
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How to validate that the query is performing and has minimum impact on the database?

Thanks
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll run your application and its query under expected load. Then you'll create an AWR report. If your query doesn't appear anywhere in it, it is probably not worth tuning it.

Other than this, it is hard to say. A query which is run once a day outside business hours may not significantly impact the database even if it consumes a lot of resources. A query that is run once (or more) a second may impact the database heavily even if it consumes just a little of database resources. Also, if there are normally many applications running on the same database (a very usual setup nowadays), assessing the query performance in a test/dev environment that doesn't have the load from the other applications can be very misleading.
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also do various things while you are developing your query to make sure it will perform well e.g. use EXPLAIN PLAN to check it is using indexes correctly or to figure out where you might want to add indexes to improve performance.
 
reply
    Bookmark Topic Watch Topic
  • New Topic