Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Sleep and Databases?

Sleep and Databases?
Thread Tools
BHD
Junior Member
Join Date: Apr 2002
Status: Offline
Reply With Quote
Feb 5, 2003, 07:38 PM
 
I'm about to setup a MySQL database on a new Mac. Question, then:

How should I deal with day-to-day running of the machine? Shut it down each night? Let it sleep without worry about the database? Let is sleep, but stop the database at night, and start it again the next morning? Or, leave it running, but disable sleep?

This is obviously partly a hardware question, but more importantly about the relationship between sleep and unix processes.
     
Registered User
Join Date: Aug 2002
Location: On my couch
Status: Offline
Reply With Quote
Feb 5, 2003, 11:18 PM
 
As long as your not planning on running any overnight database stuff, I'd say just put the thing to sleep. Everything should stay in memory just fine and you should get the best performance overall.

I'm not familiar with MySQL but I'd imagine that it would run just fine with only a reboot once a month.

Remember to run MacJanitor's jobs regularly (ie: the daily job daily and the weekly job weekly etc...)

My .02
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Feb 6, 2003, 01:53 AM
 
Originally posted by khufuu:

I'm not familiar with MySQL but I'd imagine that it would run just fine with only a reboot once a month.
Why woul'd you need to reboot the damn machine once a Month ? There's no need to reboot the machine.

What should be done on a database : daily backups, and from time to time check it's integrity.
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Feb 6, 2003, 01:57 AM
 
Originally posted by BHD:
I'm about to setup a MySQL database on a new Mac.
What will your db be used for ?
Why MySQL ? what are the reasons for that choice ?
     
BHD  (op)
Junior Member
Join Date: Apr 2002
Status: Offline
Reply With Quote
Feb 6, 2003, 09:00 AM
 
Originally posted by Ludovic Hirlimann:
What will your db be used for ?
Why MySQL ? what are the reasons for that choice ?
I want to use it for RefDB, a bibliographic db:

http://refdb.sourceforge.net/

This system started with MySQL, has since added the option for PostgreSQL, and will soon have the ability to use SQLite.

What I want is something reliable and easy-to-maintain for a db newbie (me). MySQL seems to have better support in the OS X community. I can be convinced otherwise though.

I am also considering the SQLite route, because I understand it might have advantages if I want to take a copy of the database with me on my laptop...
     
Registered User
Join Date: Aug 2002
Location: On my couch
Status: Offline
Reply With Quote
Feb 6, 2003, 09:17 AM
 
Originally posted by Ludovic Hirlimann:
Why woul'd you need to reboot the damn machine once a Month ? There's no need to reboot the machine.

What should be done on a database : daily backups, and from time to time check it's integrity.
10 years of database experience tells me that a reboot everymonth is good for memory management. no memory management software is perfect.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:34 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2