def METHOD_NAME(self, offering):
    new_max_memory = offering.memory_size_mb
    resize_factor = 0.5
    if new_max_memory > 1024:
        resize_factor = 0.75
    new_max_memory *= resize_factor
    self.infra.per_database_size_mbytes = int(new_max_memory)
    self.infra.save()