'For the given event, update the event edges table and forward and
backward extremities tables.'

def _handle_mult_prev_events(self, txn, events):

    self._simple_insert_many_txn(txn, table='event_edges', values=[{'event_id': ev.event_id, 'prev_event_id': e_id, 'room_id': ev.room_id, 'is_state': False} for ev in events for (e_id, _) in ev.prev_events])
    self._update_backward_extremeties(txn, events)
