<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="ARTARCH-537_backfill_uuid_label_participant:1" author="savva" run-on-change="true">
        <query>
            CALL apoc.periodic.iterate(
                "
                    MATCH (lp:LabelParticipant)
                    WHERE lp.uuid is null
                    RETURN lp
                ",
                "
                    SET lp.uuid = apoc.create.uuid(),
                        lp.modifiedAt = datetime()
                ",
                {batchSize:1000, iterateList:true, parallel:true, concurrency: 5}
            );
        </query>
    </changeset>
</changelog>
