Solved

"Uploaded at" vs. "Last Updated" times

  • 12 March 2024
  • 3 replies
  • 50 views

Userlevel 1
Badge

We are a bit unclear on the difference in meaning between the "Uploaded at" vs. "Last Updated"  times for Files in CDF.

For example, we have seen un-intuitive examples where the "Uploaded at" time is newer than the "Last Updated" time - we would expect that would never be the case.

Can you define the logic for these two fields, and update the documentation here? https://cognite-sdk-python.readthedocs-hosted.com/en/latest/files.html#module-cognite.client.data_classes.files

Thank you.

icon

Best answer by Dilini Fernando 11 June 2024, 13:36

View original

3 replies

I see this is a bit old, but to anyone who sees this here is a quick explanation of the difference:

“Last updated time” is the last time that the file metadata object was updated.

“Uploaded at” is the time that the actual file binaries were uploaded.

 

The file metadata object can exist and be updated independent of the actual file. This can lead to a few scenarios where the two timestamps do not align. The metadata can exist without an actual file and then the only the “last updated time” will be set. If the metadata has been updated after the file was uploaded the “last updated time” will be newer than the “uploaded time”. This is a relatively common scenario which is why there is a “uploaded time” so that it is possible to check when the actual file was uploaded.

Userlevel 4
Badge +2

Hi @rchesak,

Did the above information help you? 

 

Userlevel 4
Badge +2

Hi @rchesak,

I would like to inform you that I am closing this topic for now. Should you have any further questions, please feel free to initiate a new post.

Reply