MySQL over SQLITE

252 views
Skip to first unread message

Jamie Dunbar

unread,
May 23, 2013, 11:46:05 AM5/23/13
to weewx...@googlegroups.com
Hello everyone,

I wondered what the feeling was for using MySQL over SQLlite

I am currently using MySQL as I used to export from wview to MySQL as i was more familiar with it. To avoid fussing about I have stuck with it. I wonder sometimes if sqlite would just be easier, namely for backups as I can just copy the file away with no dumping and saving.

What are your thoughts?

Is there any easy way to migrate MySQL back to a nice tidy SDB file?

Oz Greg

unread,
May 23, 2013, 6:36:47 PM5/23/13
to weewx...@googlegroups.com
Jamie,

Ultimately your choice of DB depends on your setup, I have a nice powerful NAS so mysql is my DB of choice leaving my PI box free of the IO's required to run a DB..  If you want to run your DB on your PI box then I would go with sqlite as it has minimal overheads..

Oz Greg

unread,
May 23, 2013, 6:40:54 PM5/23/13
to weewx...@googlegroups.com
PS use the wee_config_database utility.. execute ./bin/wee_config_database ../weewx.conf --help from your weewx parent directory..

Jamie Dunbar

unread,
May 24, 2013, 11:01:50 AM5/24/13
to weewx...@googlegroups.com
What does wee_config_database do? Feel free to point me to some documentation, I had a search but came up empty.

Many thanks.

Jamie Dunbar

unread,
May 24, 2013, 11:02:32 AM5/24/13
to weewx...@googlegroups.com
Ignore me, I found it.

Steve

unread,
Nov 21, 2013, 9:04:12 AM11/21/13
to weewx...@googlegroups.com
Sorry for bumping this, thought I'd do it rather than creating a new thread.

I run weewx on an RPi but also run energy monitoring software (MeasureIt) using a Current Cost EnviR and 10 sensors on it too, it's updated every 6 seconds and displayable in real time, so things are reasonably busy.

MeasureIt uses MySQL so I configured weewx to use MySQL seeing how it is already installed, used and the overhead is already there.

What I'm asking is, while I'm not using SQLlite for weewx, does it consume any resources or use any overheads? If it does, how can I prevent it / them?

Regards,

Steve. 

Andrew Milner

unread,
Nov 21, 2013, 9:25:55 AM11/21/13
to weewx...@googlegroups.com
I can't for the life of me see why SQLite should use any significant resources if it's not being called upon to do anything - unless there is a regular housekeeping type of activity ... which, if it is not being used for anything, will be minimal overhead!
You can check running processes with ps -A command.  I just did that, and could see a couple of processes for Mysql - but nothing that looked like sqlite (which I also have got installed but, like you, am not now using as I switched to Mysql on my Pi because I am also using the mesowx extension to weewx that does not use SQlite.

Andrew

Steve

unread,
Nov 21, 2013, 9:43:52 AM11/21/13
to weewx...@googlegroups.com
Thanks Andrew,

I did a ps -A and it didn't mean a lot to me (I only know enough to break stuff), but if it doesn't bother you, it won't bother me as you'd be on top of it if it was an issue, well before I stumbled across it :)

Regards,

Steve.

Andrew Milner

unread,
Nov 21, 2013, 9:56:31 AM11/21/13
to weewx...@googlegroups.com
Lol ... don't take my word for anything - I rely on this excellent(??) guru of a teacher/informer/lecturer called Mr. Google!!!

Happy stumbling .... falls make one get more wakeful and alert!!

Andrew

Thomas Keffer

unread,
Nov 21, 2013, 12:06:15 PM11/21/13
to weewx-user
No. Sqlite is strictly an application-driven, file-based database. There is no server like there is with MySQL. It's just a library that manipulates a file. 

Weewx is designed that if you don't use sqlite, then it does not import its libraries. So, there is no overhead from it.

-tk


--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Steve

unread,
Nov 22, 2013, 2:27:09 AM11/22/13
to weewx...@googlegroups.com
Thanks for confirming that Tom.

I was hoping it was the case after googling the pros and cons of each.

Regards,

Steve.
Reply all
Reply to author
Forward
0 new messages