Hi,
my question is similar to a previous topic, but its from october and not discussed anymore, so i created a new one…
I’m new to ICE and data warehouses and I’m not sure if ICE is the right choice. Actually I have a sql db where I’m logging different datapoints with one or more measured values from some plc’s. Every 10-20 seconds I’m logging about 100-1000 new datapoints. On every insert to the fact table, I’m aggregating the data (avg, min, max, sum) in an 5min, 1hour and a daily archive. The queries are like
'select sum(counter1) from daily_archive where datapointid = 1 and year = 2009 and month = 2'
to get the total amount over one month
or
'select avg_val1, min_val1, max_val1 from 5minarchive where datapointid = 1 and ts > '2009-02-11 10:00:00' and ts < '2009-03-11 10:00:00
to create a linechart with the specified values.
Can I use ICE for such a scenario?
Is it possible to tell ICE for example, that I need the data with a resolution of 10-15 seconds only a few weeks, the hourly aggregated data a few years?
I read that there are no INSERT’s, currently I have a c++ app, which collects the data from the different plc’s and makes an INSERT. With ICE I should log this data to a csv-file and then load it with the ICE data loader or am I wrong? Can I call the loader every 5 minutes?
would the tabledesign be something similar to the following and the aggregation is done in the queries:
datapoint_id
timestamp
dim_year
dim_month
dim_week
dim_dayofweek
...
counter1
counter2
...
value1
value2
...
(every datapoint can have one or more counters and one or more analog values)
Thank you for your help!
Regards,
Willi
