File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes reducing load on server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "reducing load on server" Watch "reducing load on server" New topic

reducing load on server

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
hi ,
I have to reduce load on server.
As I am retrieving big amount of data from database.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33117

What kind of load? CPU? Network? Memory? All of the above?

Without more details, all we can tell you is to get less data at a time.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403

To reduce database load, you can simply create a table in your database as follows :

ServerID ServerAddress ServerStatus

1 Running or Idle

Now, check for the server status in this table, if the status is running then fetch the data, if its idle then wait for the status to be running.

(The application will modify the status in this table)

Also, you can keep a job scheduler in your database to look for the server status value and time out after some period to change the status.

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I'm not sure I understand, how will this help?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: reducing load on server
jQuery in Action, 3rd edition