NYULibraries/spatial_data_repository

Rails native cron for clearing search DB

Closed this issue · 5 comments

Overview

(@mnyrop keep me honest here)

The Search DB needs a data vacancy program and a cron job to clear out vestigial search data.

mnyrop commented

Just a note for later: we'll probably want to make use of the whenever gem to schedule this via rake task within the app, e.g., in this blacklight app.

That's my go-to cron gem, so I'm good with that.

@mnyrop do we have a preferred time to live on searches? 1 day? 1 week?

mnyrop commented

@mnyrop do we have a preferred time to live on searches? 1 day? 1 week?

1 week seems right; we can always update it later if we need longer/shorter since this'll be a super easy change going forward.