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
Is there a way to truncate the data to the last (or first) x records?
Production databases often contain more data than needed in development. Say I have an invoices table with a few 1000 records. I obviously need them in production but, to keep my development database small and fast, I probably only want to keep like 10 or so in development.
Thanks.
The text was updated successfully, but these errors were encountered:
Hey @cimm! So, that would be technically easy to add, but the challenge is that you likely want to maintain referential integrity, which is difficult when truncating tables. If that doesn't matter, modifying my_obfuscate to keep a row count per table shouldn't be hard.
Is there a way to truncate the data to the last (or first) x records?
Production databases often contain more data than needed in development. Say I have an invoices table with a few 1000 records. I obviously need them in production but, to keep my development database small and fast, I probably only want to keep like 10 or so in development.
Thanks.
The text was updated successfully, but these errors were encountered: