Håkon_Åmdal
New Contributor III

Did you try storing it all to a DELTA table with a MERGE INTO [1]? You can optionally specify a condition on "WHEN MATCHED" such that you only insert if the timestamp is newer.

[1] https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-merge-into.html