Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VIEWING BATCH DELETIONS

SCHEMA

Name

Description

_id

The id of the batch delete job.

organisation

The id of the organisation that this job belongs to.

filter

A stringified JSON Mongo query - records matching this filter are deleted

pageSize

Total records deleted per batch (defaults to 1000, no way to customise outside of code change and rebuild)

deleteCount

How many records have been deleted so far

total

Total number of statements found for deletion at initialise

processing

Boolean value; is there a deletion batch currently being actioned

done

Boolean value; has the job finished or been terminated

createdAt

When this document was created

updatedAt

When this document was last updated

_The filter field is stored as text to account for . (dot) characters used in query keys - these are invalid in Mongo JSON structures.

...

Code Block
db.siteSettings.updateOne(
  {
    "_id" : ObjectId("111111111111111111111111")
  },
  {
    $set: {
      batchDeleteWindowStartUTCHourbatchDeleteWindowUTCHour: 00,
      batchDeleteWindowUTCMinutes: 00,
      batchDeleteWindowDurationSeconds: 18000
    }
  }
)

...