• 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

    Recommended steps for moving a point from one metadata source to another

    User help
    2
    3
    1.4k
    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.
    • P
      Pedro
      last edited by Pedro

      As the number of metadata functions or points grows, it becomes increasingly desirable to organize them into different metadata sources. What is the best practice for moving the metadata point from OldMetaSource to NewMetaSource, without having to delete and create a metadata point, and without having to export then import a large PointValues table? There is a way to just reassign the point and the PointValue to the new source. What is the step-by-step procedure?

      Thanks.

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

        Hi Pedro,

        I would...

        1. Stop all the meta points that are to be moved, or more simply the meta data sources.
        2. Run some variant of the following SQL command, based on how it is easiest for you to describe this set of points:
        UPDATE dataPoints SET dataSourceId=(SELECT id FROM dataSources WHERE xid='originMetaSourceXid') WHERE deviceName LIKE '%Device 1 Meta%';
        
        also consider....
        WHERE xid IN ('MDP_1', 'MDP_2');
        WHERE name='movePoint';
        
        1. Enable points that were disabled for the move.
        2. Enable or restart the second meta source.
        1 Reply Last reply Reply Quote 0
        • P
          Pedro
          last edited by

          Thanks, Phil, that's very useful. It was also insightful of you to note that narrowing down by device name is the most logical way to select the source points to be moved, as renaming the Device Name was probably the first step done by an admin looking to group points within a source that already has many points.

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