This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes reducing load on server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "reducing load on server" Watch "reducing load on server" New topic
Author

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

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

ServerID ServerAddress ServerStatus

1 192.168.1.6 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.


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

Joined: Apr 14, 2004
Posts: 10336

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


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: reducing load on server