O'Reilly logo

Oracle Database 11gR2 Performance Tuning Cookbook by Ciro Fiorillo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Improving performance sharing reusable code

In this recipe, we will see how to share reusable code in our application to improve performance.

Getting ready

To demonstrate the performance gain by sharing reusable code, the following example is written in Java, similar to the one presented in the previous recipe.

How to do it...

The following steps will demonstrate how to share reusable code:

  1. Create a OraclePerformanceTuningCookbook directory and a chapter02 directory inside it.
  2. Open your preferred text editor.
  3. Create a class called SharedCode in the package chapter02 using the following code and save it in a file named SharedCode.java in the previously created chapter02 directory:
    package chapter02; import java.sql.*; public class SharedCode { private ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required