Updates the calculated intervals in the database. Performs an upsert

        :param intervals: The calculated intervals
        :return: None

def calculated_intervals(self, intervals):
        """
        Updates the calculated intervals in the database. Performs an upsert

        :param intervals: The calculated intervals
        :return: None
        """
        if len(intervals) > 1:
            raise ValueError("Only single calculated interval valid for AssetStream")
        super(AssetStream, self.__class__).calculated_intervals.fset(self, intervals)