Skip to content

perf(storages)!: Write metadata timestamps less often - #2585

Open
Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:approximate-storage-timestamps
Open

Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:approximate-storage-timestamps

Conversation

@Mantisus

@Mantisus Mantisus commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Description

FileSystemStorageBackend, SqlStorageBackend and RedisStorageBackend write the accessed_at and modified_at metadata timestamps on their own at most once every 5 seconds per storage. Reads and repeated writes no longer rewrite the metadata file, add an SQL buffer record or send a Redis JSON.SET on every call, so the stored timestamps are approximate.

Testing

  • Unit tests for the throttle, the skipped and forced metadata writes of each backend, purge(), and writes after a failed one.

✍️ Drafted by Claude Code

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 3, 2026
@Mantisus Mantisus self-assigned this Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant