Quantcast
Channel: Purging of unreferenced data via unconditional DELETE, by leaning on foreign key constraints - Database Administrators Stack Exchange
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Josh Darnell for Purging of unreferenced data via unconditional...

One option would be to create views for these "inconvenient" tables that only return rows where all foreign key relationships have been broken. Then you could do unconditional deletes from those...

View Article



Purging of unreferenced data via unconditional DELETE, by leaning on foreign...

I'm designing a database from which old data has to be purged regularly for legal reasons, and I'm trying to figure out the best way to organise the purging.Dealing with the main tables is trivial,...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images