• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Data point query limited to 100 points returned

    User help
    2
    2
    628
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      iperry
      last edited by

      Heya,

      v3.7.7

      For some time, I was encountering an odd behavior in displaying the value of data points for a device. Some devices would be fine and some would have missing data points. I confirmed that the data points I expected were in the data source and had a valid value but for some reason were not being returned in the point query.

      Finally I had some time to devote to investigate this issue and discovered that there is an implicit limit of 100 on a data point query.

      For example, the number of data points returned by the follow queries should be the same:

      <ma-point-query query="{deviceName: $ctrl.deviceName}" sort="'name'" points="ptstmp"></ma-point-query>
      *{{ptstmp.length}}*
      <ma-point-query query="{deviceName: $ctrl.deviceName}" sort="'name'" limit="300" points="ptsDevice"></ma-point-query>
      *{{ptsDevice.length}}*
      
      

      However, the lengths of the arrays where 100 and 153 respectively.

      According to the API docs in the application:
      "All data points added to your Mango system will display by default, unless you set the limit property."
      and
      "Limit takes place after query and sorting (no limit by defualt)"

      The docs would indicate that if no limit is specified, then all of the data points matching the query should be returned.

      I am not sure if there is a possible issue with the docs or the behavior of the point query function.

      The issue can be fixed by adding limit="-1" to the query but it is a maintenance challenge to update all uses of the point query in the app.

      Thanks
      Ian

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        I believe since 3.6 the default was changed from 200 to 100. This has always been the case.
        I always write a full rql string to ensure nothing is amiss. I think you've found a typo.

        Fox

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • First post
          Last post