| Maximum number of content instances in a Container [message #1714180] |
Tue, 10 November 2015 09:16  |
Eclipse User |
|
|
|
Hi all.
My question is with regards to the "org.eclipse.om2m.maxNrOfInstances" configuration parameter.
I have a hardware measurement unit deployed in the field, which posts a measurement point to its application container on the NSCL every minute.
Since there are 1440 minutes in a day, using the default :
org.eclipse.om2m.maxNrOfInstances = 1000
means that I can store less than a days worth of data on the NSCL. I would like to store up to a years worth of data i.e. 365 x 1440 = 525600 data points (which is roughly 100Mb of data in my case)
My question is: what are the limitations to this parameter? Surely the H2 database should have absolutely no problem with this? Can I make this parameter infinite?
I have found that if I have 1000 datapoints in a container, the OM2M web interface slows down pretty bad when I click on the "container" resource. This worries me a little.
The reason why I ask this is because I believe that application data should be stored on the xSCL and NOT on some external database application that subscribes to the xSCL. Is this in line with the ETSI M2M philosophy?
Kind regards
Andrew
|
|
|
| Re: Maximum number of content instances in a Container [message #1714740 is a reply to message #1714180] |
Mon, 16 November 2015 05:48  |
Eclipse User |
|
|
|
Hi Andrew,
Your question is a relevant one. Regarding to the max number of instances parameter, we did not implemented any mechanism to make this number infinite. However you can add a few lines of code to use the 0 value as an infinite limit for instance.
Regarding to the ETSi philosophy, the persistence layer is more seen as a service provided by the SCL whatever the mechanism he uses. It could be an external database or an embedded one.
On the other hand, the web interface helps you visualize the resource arborescence however if you have a large number of instances, the request will take some time to be executed and to get the serialized representation containing the list of all the resources. However you can use simple requests to get the last content instance (using .../Xcontainer/contentInstances/latest as uri) to avoid such a time cost.
Kind regards,
Guillaume
|
|
|
Powered by
FUDForum. Page generated in 0.04990 seconds