• 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

    context update vs cron

    Mango Automation general Discussion
    3
    4
    1.6k
    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.
    • A
      atkins.chrisw
      last edited by

      If I have a point taking the delta between a totalizer every 15 minutes, using this equation

      return p317.value - p317.ago(MINUTE, 15)

      would it be better on the cpu (mango) to use a context update or to use a CRON pattern

      0 0/15 * * * ?

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        I would use a cron for that regardless but the CPU question depends on how often your contex point where to update.

        1 Reply Last reply Reply Quote 0
        • A
          atkins.chrisw
          last edited by

          So if I am doing things on a "time" basis, cron is better? It is my understanding that I would use a context update more for a "Status" , or event handler.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            I'm not sure there is a hard and fast simplification for the selection of the type. That said, that's a fine intuition to start from.

            Another kind of meta data point will be something like the 'Time since status' genre. In this case, I typically use a cron AND a context update. While just using a cron would enable you to recompute the minutes since the last update/change/negative value/whatever, but it isn't responsive and would probably never report a zero. So the context update is useful to zero it out.

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