I have been running emoncms for almost two years now. My feeds were converted to a TIMESTORE feed many months ago, but I now want to convert to the recommended PHPFina feeds.
In the usefulscripts there is a script to convert from PHPTimestore to PHPFina - but how do I get from TIMESTORE to PHPTimestore please?
Re: Convert from timestore
I know this must be possible, because my feeds in emoncms.org were originally TIMESTORE, and now they are PHPTimestore. Can someone help please?
Re: Convert from timestore
From what I understand, the PHPTimestore is a PHP port of the SQL TIMESTORE engine and the resulting data would be the same, Maybe you could make a backup copy and try the PHPTimestore to PHPFina on the TIMESTORE data.
See Emoncms Time Series engine history for in-depth info.
Paul
Re: Convert from timestore
Isn't TIMESTORE a program written in C, by Mike Stirling, (later ported to PHP by Trystan) and PHPTimeseries the SQL compatible storage engine?
www.mike-stirling.com/redmine/projects/timestore
Re: Convert from timestore
That's where I'm a little hazy, because I thought (rightly or wrongly) TIMESTORE by mike-sterling WAS the timeseries engine that Trystan then ported to PHP as PHPTimeseries.
The blog is titled "Timestore TimeSeries Database" says "It uses a NoSQL approach"
The "variable interval" documentation states
and Trystan also says
And in this forum post he refers to PHPFina, PHPFiwa and PHPTimestore as the "the new engines", a link to which appears as the first line of this excerpt from the Emoncms Time Series engine history
So whilst I can find no hard evidence I had assumed PHPTimestore and PHPTimeseries were the same and never really questioned it to be honest. This is my own conclusion so any clarification is welcome.
Paul
Re: Convert from timestore
Hi Paul,
That's where I'm a little hazy, because I thought (rightly or wrongly) TIMESTORE by mike-sterling WAS the timeseries engine that Trystan then ported to PHP as PHPTimeseries.
It looks as if Trystan called his PHP port of TIMESTORE, PHPTimestore. It's referenced in the default.settings.php file that's in emoncms. Here's an excerpt from v8.4.0:
As can be seen, both PHPTimeseries and PHPTimestore are referenced there.
If memory serves, I recall reading an article that said something to the effect of "Although PHPTimeseries is faster than MySQL, it isn't as fast as Timestore, but, PHPTimeseries data is compatible with, and can be read by, MySQL."
Trystan mentions both Mike's program, and his port, in this post: http://openenergymonitor.org/emon/node/3868 (here's a clip of some of it)
PHPTimestore
Posting 30000 takes 6.5s ~ 0.000217 seconds per post (4615 posts/s)
Posting 25000 takes 5.1 ~ 0.000204 seconds per post(4902 posts/s)
Timestore
Although a single post can take 0.000275 seconds (3636 posts/s), testing again today I could not get it to run continuously at a stable post rate at anything much faster than 310 posts per second 0.00323 seconds per post. The emoncms.org server has also reached a similar post rate and its seeing the same unstable slow down effect.
Looks like some of the docs need updating ;-)
Regards,
Bill
Re: Convert from timestore
You could well be right, although I was awarwe of the different locations I assumed one just proceded the other and was retained for compatibility, although I'm sure that's still the reason PHPtimestore was still in the settings I am no longer sure (if I ever was) which engine(s) are which.
The thread you link to mentions PHPtimeseries twice, the second mention states
while discussing the fixed intervals of the "php port of timestore". still not absolute however, and http://openenergymonitor.org/emon/node/4334 states
which also links timestore to phpfina and phpfiwa, so maybe PHPTimeseries is just a variable interval cousin of timestore ???
Anyway, having totally hijacked the thread, I have also noticed engeeaitch's original question was "how do I get from TIMESTORE to PHPTimestore", which I believe we are agreed PHPTimestore is a PHP port of TIMESTORE whatever it is, regardless of what PHPtimeseries maybe too.
So engeeaitch, I think it would be worth running the "PHPTimestore to PHPFina" script on a copy of the TIMESTORE data, what do you think Bill?
One thing we can absolutely agree on is the need for clarification :-)
Paul
Re: Convert from timestore
Ahha! just saw this post by Trystan
Re: Convert from timestore
Ahha! just saw this post by Trystan
"I have also added another feed engine called phptimeseries which is much faster than mysql but slower than timestore and without averaging, it also uses the same datafile format as mysql so its just a matter of copying the mysql datafiles.
Looks like the ol' memory cells are still workin' after all! (at least somewhat) I just couldn't remember WHERE I'd read it.
Your suggestion of running the "PHPTimestore to PHPFina" script on a copy of the TIMESTORE data sounds like it should do the job.
Re: Convert from timestore
Thanks for the suggestions - I'll give this a go when I have a bit of time.