electrical_eng_lOriginal post
Rank 1: Thread
I have a document that i want to archive after 24h from the moment it was created.
How do I do that ?
Also assuming my application will accept thousands of posts weekly , is there an efficient way to check and change accordingly?
The attributes :
Post - String
isOnline - String
DateCreated - DateTime
DateEnds - DateTime
Summary
Create a function to fetch and archive documents after 24 hours of creation. Adjust the interval for function execution based on load. For efficient handling of high post volumes, consider optimizing the process.
Solution:
1. Set up a script to run every hour to identify and archive documents created 24 hours ago.
2. Adjust the script's interval based on the application's load.
3. Optimize the archiving process to accommodate high post volumes efficiently.