Skip to content

Release/v3.2.0#202

Merged
andrewmarkham merged 3 commits into
mainfrom
release/v3.2.0
Jun 2, 2026
Merged

Release/v3.2.0#202
andrewmarkham merged 3 commits into
mainfrom
release/v3.2.0

Conversation

@andrewmarkham

Copy link
Copy Markdown
Owner

No description provided.

kennygutierrez and others added 3 commits May 31, 2026 21:21
On sites that have been collecting CSP reports for a while,
SecurityReportTo can hold millions of rows. The purge job's
single unbounded DELETE exceeds the SqlCommand timeout and
rolls back, so the table never shrinks.

Changes:
- Add ReportingOptions.PurgeBatchSize (default 5000; <= 0
  restores the original single-DELETE behavior).
- IReportingRepository.PurgeReporingData gains an optional
  int? batchSize. Source-compatible with existing callers.
- SQL provider switches to DELETE TOP (@batchsize) when a
  batch size is supplied; ElasticSearch ignores it since
  DeleteByQuery already handles bulk deletes.
- PurgeReporintgDataJob loops batch-by-batch, reports
  progress via OnStatusChanged, and is now IsStoppable.

Co-authored-by: Kenny Gutierrez <Kenny.Gutierrez@centurycommunities.com>
@andrewmarkham andrewmarkham merged commit dd7a1e1 into main Jun 2, 2026
5 checks passed
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.

2 participants