How to update the db continuously?
Moderator: General Moderators
How to update the db continuously?
I have a script that updates the database. Everytime a user logs in, it will update the database. I am trying to do the updating every few seconds however...waiting until a user logs in is kind of sloppy. Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
Re: How to update the db continuously?
Offhand, I can't think of any justifiable reason to update a database when it is not being used. What data are you trying to update?Yourchild wrote:I have a script that updates the database. Everytime a user logs in, it will update the database. I am trying to do the updating every few seconds however...waiting until a user logs in is kind of sloppy. Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
Re: How to update the db continuously?
In short, yes there is a way. Several of them!
But it's probably not the best solution you're looking for.
Describe your problem and we can help you come up with
a good solution.
But it's probably not the best solution you're looking for.
Describe your problem and we can help you come up with
a good solution.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: How to update the db continuously?
You can run scripts and programs with cron on any schedule you want. What is your OS?Yourchild wrote:Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
(#10850)