- Feb 25, 2011
- 16,992
- 1,621
- 126
Hey,
I'm setting up some stats/reporting to monitor our developer build process and performance. The makefiles keep track of build stats and kick data back to a database server. (a couple hundred builds per day.) Then python and matplotlib fetch data from the DB and generate some pretty graphs, which I post on our internal wiki.
Managers love pretty graphs.
When doing various calculations, I'm wondering if it's better in general to 1) have MySQL do AVG, COUNT, etc., to get as close as possible the data I want, or 2) just retrieve the raw table data and have my scripts work it out?
Is there a preferred method or best practice here? Does it depend on the DB size?
I don't want the DBA Mafia to come throw rotten fruit at me.
Thanks for your advice! :-D
I'm setting up some stats/reporting to monitor our developer build process and performance. The makefiles keep track of build stats and kick data back to a database server. (a couple hundred builds per day.) Then python and matplotlib fetch data from the DB and generate some pretty graphs, which I post on our internal wiki.
Managers love pretty graphs.
When doing various calculations, I'm wondering if it's better in general to 1) have MySQL do AVG, COUNT, etc., to get as close as possible the data I want, or 2) just retrieve the raw table data and have my scripts work it out?
Is there a preferred method or best practice here? Does it depend on the DB size?
I don't want the DBA Mafia to come throw rotten fruit at me.
Thanks for your advice! :-D