<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="NR-1761_touch_ownership_nr:1" author="jmarais" run-always="true">
        <cypherquery>
          <![CDATA[
            CALL apoc.periodic.iterate(
              'MATCH (n:NrOwnershipService) RETURN n',
              'SET n.touchedByBackfill=datetime()',
              {batchSize:30,iterateList:true,parallel:true,concurrency:5}
            )
            YIELD total
            RETURN total
          ]]>
        </cypherquery>
    </changeset>
    <changeset id="NR-1761_touch_ownership_nr:2" author="jmarais" run-always="true">
        <cypherquery>
          <![CDATA[
            CALL apoc.periodic.iterate(
              'MATCH (ns:NrSoundRecording:NrOwnership)-[r:HAS_OWNERSHIP_RULE_MONETIZE]->(n:NrOwnershipService) RETURN r',
              'SET r.touchedByBackfill=datetime()',
              {batchSize:20,iterateList:true,parallel:true,concurrency:3}
            )
            YIELD total
            RETURN total
          ]]>
        </cypherquery>
    </changeset>
    <changeset id="NR-1761_touch_ownership_nr:3" author="jmarais" run-always="true">
        <cypherquery>
          <![CDATA[
            CALL apoc.periodic.iterate(
              'MATCH (ns:NrSoundRecording:NrOwnership)-[r:HAS_OWNERSHIP_RULE_CARVEOUT]->(n:NrOwnershipService) RETURN r',
              'SET r.touchedByBackfill=datetime()',
              {batchSize:20,iterateList:true,parallel:true,concurrency:3}
            )
            YIELD total
            RETURN total
          ]]>
        </cypherquery>
    </changeset>
</changelog>
