Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:39:19+00:00 2026-05-23T19:39:19+00:00

While running through a piece of code for performance tuning, i noticed that the

  • 0

While running through a piece of code for performance tuning, i noticed that the pooled database connection is not used immediately, it follows some pre-processing before the connection used to delegate a SQL update call.

I fixed the codes by delaying the retrieval of the pooled database connection until before the codes is ready to call on the insert method.

As i am trying to update the documentation that this optimization is done, how should i work it in a sentence or title?

Old Codes:

... 

connection = ConnectionFactory.getPooledConnection(); // get pooled connection

String message = StringUtils.replace(log, "a", "b");

// many other processing

connection.update(message);

connection.release();
...

New Codes:

... 


String message = StringUtils.replace(log, "a", "b");

// many other processing

connection = ConnectionFactory.getPooledConnection(); // get pooled connection

connection.update(message);

connection.release();
...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:39:20+00:00Added an answer on May 23, 2026 at 7:39 pm

    Not sure this case actually warrants it – because you’ve made the code behave more like it “should”. But generally, such deferral of work until the moment it is needed is referred to as “lazy initialization”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While running through the cheat sheet create a navigation rule for the Eclipse JavaServer
I'm running the following piece of code which uses a delegate to return an
I designed a CrystalReport using CrystalReport Designer that embedded with VisulaStudio.NET 2005, while running
I've hit a snag while running through the hello world pylons example. I see
Hey fellas, while running through a debugger I am seeing the following appear the
I have a function that displays a few divs running through a loop using
I have problem running and debugging this piece of code: bool readSectionHeaders(char* path, int
While running a batch file in Windows XP I have found randomly occurring error
While running my application (which does a good bit of custom drawing) I get
I get numerous method redefined warnings while running an application under Merb 0.9.3. Of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.