How long is an optimization result stored?

Questions refering to the Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2997
Joined: Mon Apr 14, 2014 10:28 am
Contact:

How long is an optimization result stored?

Post by Bernd Welter »

How long can I retrieve a planning result through the getOptimizationResult method?
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
michael.unrau
Posts: 5
Joined: Tue May 16, 2023 11:51 am

Re: How long is an optimization result stored?

Post by michael.unrau »

Data retention policy is currently still under discussion.

Cheers,
Michael
Michael Unrau
DevOps Engineer
PTV Logistics - Germany
User avatar
Bernd Welter
Site Admin
Posts: 2997
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How long is an optimization result stored?

Post by Bernd Welter »

Awesome - meanwhile we added some convenience functions and I created a little admin frontend which enables me to
  • jump through the planning history
  • visualize various KPIs
list.png
:!: Very helpful - thanks!
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2997
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How long is an optimization result stored?

Post by Bernd Welter »

FYI: In v 1.39 (19.01.2026) we added the parameter metadata.deletion which serves for a better housekeeping ;-)
deletion : string <date-time>

The deletion time of the optimization. Must be in the future and only applies to finished optimizations. Formatted according to RFC 3339, section 5.6.
  • Now in the past we removed all plannings 2 weeks after creationDate.
  • This is still the default behaviour if you do not specify the deletion date during the startOptimization.
  • We are now more flexible and trust you to perform some housekeeping by
    • Specifying a fair deletion date with the startOptimization
    • Or by removing you plannings every once in a while via deleteOptimization
    • Or by updating the deletion date via updateOptimizationMetadata
The column &quot;Metadata Deletion&quot; shows the deletion date.<br />In the VIRTUAL column &quot;Metadata TimeTillDeletion&quot; I calculated the remaining time on client side. As you can see in the 3rd row the date is in more than 3 weeks.
The column "Metadata Deletion" shows the deletion date.
In the VIRTUAL column "Metadata TimeTillDeletion" I calculated the remaining time on client side. As you can see in the 3rd row the date is in more than 3 weeks.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply