I'm subscribing to a change data capture event stream via an Apex trigger. It appears there can be multiple record IDs associated with each change event. Does this mean that all the changes on these records are identical, including SystemModstamp?
For reference: https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_trigger_example.htm
Example from the start of the trigger:
trigger CaseChangeEventTrigger on CaseChangeEvent (after insert) {
List<CaseChangeEvent> changes = Trigger.new;
Set<String> caseIds = new Set<String>();
for (CaseChangeEvent change : changes) {
// Get all Record Ids for this change and add to the set
List<String> recordIds = change.ChangeEventHeader.getRecordIds();
caseIds.addAll(recordIds); // Why is there more than one recordId / change???
}
....