Community
OpenEnergyMonitor

Community

Creating a feed takes very long on own server

emoncms
Tags: #<Tag:0x00007f1fe42d7778>

(Johan) #1

Hi Guys,

So I have a question: when I try to build a feed, it takes close to 30 seconds to do so using the API (http://server/emoncms/feed/create.json?tag=whatever&name=feedname&datatype=1&engine=5&options={“interval”:10}&apikey=apikey)

I assume this is because it builds the metadata for the feed, so I was wondering firstly if there is a way to speed this up, or secondly, can I simply copy the feeds from another user (assuming the names, datatype etc is the same)? I have tried the SQL route, but then it doesn’t generate the metadata. Is there perhaps a way to have that generated via SQL or something else that will make it a bit quicker than 30 seconds per feed?

Thanks so much!