logoalt Hacker News

whalesaladyesterday at 10:53 PM1 replyview on HN

A good solution here (can be) to utilize a view. The underlying table has soft-delete field and the view will hide rows that have been soft deleted. Then the application doesn't need to worry about this concern all over the place.


Replies

elyoboyesterday at 11:07 PM

postgres with rls to hide soft deleted records means that most of the app code doesn't need to know or care about them, still issues reads, writes, deletes to the same source table and as far as the app knows its working

show 1 reply