CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Location
    Bangalore
    Posts
    35

    Improve DB Performance

    Hai,

    I am maintaining one web application which is done in Java & Oracle 10g & Jasper reports(Reporting tool for Java).

    We will be generating Monthly report or Daily report or Report between two Dates (Ex. Invoice Statements)
    I am sending query to database which contains 4 sub queries and collecting data from at least 4 tables.
    The time taking for query processing and showing report is almost 3 to 5 minutes.
    Still I want to reduce the time in terms of seconds.
    Here where the Database caching concepts will be implemented.

    How to go-a-head to fix up this issue?
    Can I use Stored Procedures for this?
    If you know about Database Caching in Java & Oracle please guide me to implement.

    I have searched a lot in Google, but I feel I didn't get any good article or code.
    Thanks in Advance.

    Manivannan

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Improve DB Performance

    Have you profiled your application to establish exactly where the time is being taken up? If not, what makes you so sure database caching will solve the problem?

    Premature optimization is the root of all evil in programming...
    C.A.R. Hoare
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    May 2009
    Posts
    2,413

    Re: Improve DB Performance

    Quote Originally Posted by g1m0v0n5 View Post
    How to go-a-head to fix up this issue?
    If you've established that the database queries are the performance bottleneck you need to analyze the queries carefully. A common problem is that deeply nested table searches are sequential. To avoid it you either reformulate your queries or introduce proper table indexing.

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

Featured