Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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: 30136
    
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reducing load on server
 
Similar Threads
File object
how to use NEXT and Previous
load balancing in Apache-Tomcat
other languages calling java commands
apacheHttp Tomcat Integration