| 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: 26489
|
|
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: 391
|
|
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
|
 |
 |
|
|
subject: reducing load on server
|
|
|