You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we do this manually in every delete function. This really isn't gonna scale, esp with delete constraints.
Instead, create a trigger that will fire every time an upload row gets deleted, and have a GenServer listen for that event and schedule the deletion with UploadDeleter.
The text was updated successfully, but these errors were encountered:
zkat
added
the
technical improvement
General technical improvements that might not be user-visible or affect the overall site experience.
label
Feb 18, 2024
Right now, we do this manually in every delete function. This really isn't gonna scale, esp with delete constraints.
Instead, create a trigger that will fire every time an upload row gets deleted, and have a GenServer listen for that event and schedule the deletion with UploadDeleter.
See https://peterullrich.com/listen-to-database-changes-with-postgres-triggers-and-elixir
The text was updated successfully, but these errors were encountered: