Skip to content

add check to confirm link isn't already present before uploading#347

Merged
sgelbart merged 2 commits intomainfrom
sl-reduce-storage
Feb 10, 2026
Merged

add check to confirm link isn't already present before uploading#347
sgelbart merged 2 commits intomainfrom
sl-reduce-storage

Conversation

@sgelbart
Copy link
Collaborator

@sgelbart sgelbart commented Feb 10, 2026

Currently, we're blowing up our storage costs by recreating links that are already present.
Deploy this to prevent that.

Once our costs stabilize we can purge old data

ActiveStorage::Blob.unattached.where(created_at: ..2.days.ago).find_each(&:purge_later)

To test:

  • check the azure write operations tomorrow. They should be dramatically reduced.
  • Also check that new blobs are indeed going into the database for docket event links.

@sgelbart sgelbart merged commit 5e628b6 into main Feb 10, 2026
2 checks passed
@sgelbart sgelbart deleted the sl-reduce-storage branch February 10, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant