MySQL and Monthly Log Files
Posted: Fri 25 Jul 2014 12:55 am
Hi all,
I've used the ImportCumulusFile script (and cumulus toolbox) to import the dayfile.txt file into a mySQL database for a while without any problems. I've even managed some graphs (TNET's modified JpGraph package) and a Top 10 page from the data. I'd like to import my monthly logs and use the data from those but I have confused myself a bit so a few questions before I get too carried away with it.
1. I have a database is called 'cumulus' and has a table called 'dayfile'. Should I be creating an additional table called 'monthly" in the same database or create a whole new database?
2. Can I use the ImportCumulusFile script to upload both the dayfile.txt and the latest monthly log file (Jul14log.txt) at the same time or should I use two versions of the script.
3. I can see there is currently 1599 rows of data in my dayfile table (one for each day). Am I right in thinking that the 'monthly' table will create a new row in the table for each line of data in each monthly log file? With 1 minute logging interval, my Jul14log file has (at time of posting) 35,011 lines of data and Jun14 has 46,282 lines of data. That's something like 2 million lines for the 4 and a half years of data I have. Will the table have that many lines?
I'd like to eventually use highcharts and graph some historic data so is it a bit of overkill to use the monthly logs anyway. What are other database users using at the moment, the dayfile, monthly logs or both?
Thanks in advance.
I've used the ImportCumulusFile script (and cumulus toolbox) to import the dayfile.txt file into a mySQL database for a while without any problems. I've even managed some graphs (TNET's modified JpGraph package) and a Top 10 page from the data. I'd like to import my monthly logs and use the data from those but I have confused myself a bit so a few questions before I get too carried away with it.
1. I have a database is called 'cumulus' and has a table called 'dayfile'. Should I be creating an additional table called 'monthly" in the same database or create a whole new database?
2. Can I use the ImportCumulusFile script to upload both the dayfile.txt and the latest monthly log file (Jul14log.txt) at the same time or should I use two versions of the script.
3. I can see there is currently 1599 rows of data in my dayfile table (one for each day). Am I right in thinking that the 'monthly' table will create a new row in the table for each line of data in each monthly log file? With 1 minute logging interval, my Jul14log file has (at time of posting) 35,011 lines of data and Jun14 has 46,282 lines of data. That's something like 2 million lines for the 4 and a half years of data I have. Will the table have that many lines?
I'd like to eventually use highcharts and graph some historic data so is it a bit of overkill to use the monthly logs anyway. What are other database users using at the moment, the dayfile, monthly logs or both?
Thanks in advance.