Lock a database or take a snapshot of DB

Hello, 

 

We want to take an export of all tables and views from DB. As the export of 180 entities can take time, there should not be any data updated on the DB duing the export period.

To do this, can we lock the MySQL DB for a some period of time. I am afraid a lock can create failures to users if any write fails.

Are there any other options like taking a snapshot of DB from Appian? Let us know.

 

Thank you,

Harish 

 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    came across this questions after many years today. one approach will be to display outage message on users screen while taking backup of the DB. If only certain part of the application deals with database, list out all UI/Process that might write into DB and use a constant to toggle the UI to show outage message. Once the DB export is done, we can toggle back the constant which will enable UI that write into DB. This is only when part of application uses data write and the requirement is to still run the rest of the application for a larger user base. If the application is entirely data driven, then its better to announce a proper outage for such activities if the app is 24*7, if not we could always choose a weekend where users are not logged in

Reply
  • 0
    Certified Lead Developer

    came across this questions after many years today. one approach will be to display outage message on users screen while taking backup of the DB. If only certain part of the application deals with database, list out all UI/Process that might write into DB and use a constant to toggle the UI to show outage message. Once the DB export is done, we can toggle back the constant which will enable UI that write into DB. This is only when part of application uses data write and the requirement is to still run the rest of the application for a larger user base. If the application is entirely data driven, then its better to announce a proper outage for such activities if the app is 24*7, if not we could always choose a weekend where users are not logged in

Children
No Data