def METHOD_NAME(cls, activity_id, aggregated_ids, feed):
    """
    Naive solution without bulk support.
    """
    for aggregated_id in aggregated_ids:
        try:
            cls.objects.create(
                activity_id=str(activity_id),
                feed=feed._meta.model_name,
                aggregated_id=aggregated_id,
            )
        except IntegrityError:
            pass