Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

howdy all,

 

 need ideas on best practice for archiving and purging a database

I have a database with 10 tables all with relationships, and approximately 40K recorded I would like to have a script (or plugin) that would allow me to move data older than 1 year to an identical database and then delete the found set from the master.

I tried using the export import but can't figure out how to move all relevant records including the once from the relation. 

Any help or ideas would be greatly appreciated. 

Thanks

Rudy

Why would you need to do this?

 

  • Author

Thank you for your reply,

Data older than 6 months will  never be accessed again, but don't want to delete just in case. My idea was to have a script move any data older then 6 month to another database for save keeping.

Thanks

Rudy

 

15 hours ago, rudym88 said:

Data older than 6 months will  never be accessed again

So don't access it.

What you ask for requires a considerable amount of very careful scripting. You would need to find records that are older than a year and export them. Then tell the other file to import them. (Or tell the other file to import them directly from the original file.) Then delete them. All this repeated 10 times, once for each table. That's a lot of moving parts - and if anything goes wrong during this process, you will lose data. That's on the con side. On the pro side: nothing, AFAICT.

 

  • Author

Thanks, I was hoping to get a better simpler solution.  I started to put something together and you are correct there are a lot of moving parts.

 

Thanks for the the advice.  

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.