Create a solution for following table backup option, OPTION 1 Main table -> send…
- User
Create a solution for following table backup option, OPTION 1 Main table -> send partitioned data to backup table -> retain for x days -> purge : this will reduce load on main table and manage performance
Background : Application is a Spring API connected to a postgres database on a tomcat server
- Assistant
- User
For our solution, I am planning to make database backup/archival for records which are older than 180 days - make solution on this basis
- Assistant
- User
What will be risks and downsides for this implementation?
- Assistant
- User
To save last state for DB - where and how should I store this information?
- Assistant
- User
How handle DB locks for above solution for backup
- Assistant
- User
How do I calculate the batch size?
- Assistant
- User
I am sharing my solution with my boss over email to get his reviews and approval to see if the solution is correct or has any gaps. This is my message, I have created a solution to implement database archival for ID&V tables for condition where records older than 180 days are archived. I have attached the solution details as a text file. Please share your reviews.
Is the message and it's tone is correct?
- Assistant
Your message is clear and concise, which is great for professional communication. However, you might want to consider making a few adjustments to improve the professionalism and clarity of your email. Here’s a revised version of your message:
Subject: Request for Review: Database Archival Solution
Dear [Boss’s Name],
I hope this message finds you well.
I have developed a solution for implementing database archival specifically for the ID&V tables, targeting records that are older than 180 days. The details of the solution are attached as a text file for your review.
I would appreciate your feedback and any suggestions you may have regarding this approach.
Thank you for your time, and I look forward to your insights.
Best regards,
[Your Name]
[Your Position]
Key Adjustments Made:
- Subject Line: Added a subject line for clarity and to grab attention.
- User
Thanks
- Assistant
You're welcome! If you have any more questions or need further assistance, feel free to ask. Good luck with your solution presentation!
- User
My organisation does not approve cron jobs but only ControlM jobs - how will my service change according to that?
- Assistant
- User
Below is my solution document. Add how will I implement the service as a controlM job. I have share it with my boss
IDV Database archival solution
IMPLEMENTATION
- Database partitioning For each IDV table, create a backup table with identical schema. Will do for all 4 tables (idv_transaction, idv_ekyc_golden_source, idv_ekyc_golden_source_payload, idv_match_results) eg: CREATE TABLE idv_transaction ( // main table ...schema... created_at TIMESTAMP NOT NULL DEFAULT NOW() ) PARTITION BY RANGE (created_at);
CREATE TABLE idv_transaction_backup ( // backup table ...schema... backup_created_at TIMESTAMP NOT NULL DEFAULT NOW() );
-
Tracker table Create a centralized backup service tracking table. We are opting for a tracker table because we do not have any configuration management system like Zookeeper for a decentralised tracking. CREATE idv_db_state ( last_backup TIMESTAMP, last_purge TIMESTAMP, last_success_update TIMESTAMP );
-
Backup service A service is implemented in spring (runs periodically) to execute backup using a ControlM job
- Assistant