There are a lot of documents in my mongodb, that need to be processed at 11 pm and as soon as they are processed, they need to be updated. So, a cron is written that fetches these documents by date and time. But, to scale up, there will be thousands of documents that will need to process. We thought of splitting the cron into 4 smaller crons. But, here the problem was that if 2000 documents are needed to processed and updated in a day, we have to process them 500 at a time, but where do we store the value 500 for one day ? Is it efficient to split that cron? if it is efficient, how can I split them ? P.S. While processing can be done in parallel threads, updating the documents should be done in sync because of read-write conflict of database.
- Java error: java.lang.IllegalArgumentException: adding a window to a container
- How to make Java string assert true
- Jave while loops
- Java OOP exercise
- Sum odd numbers program
- Server jar file missing (MCP 9.18)
- Netflix eureka Microservice
- Why is using Collection<String>.class illegal?
- Generate 8-byte number in Java
- Movie ticket calculation
- Withdraw money from ATM
- Polymorphism java 8
- Java win32 libraries/api
- Facial Expression recognition
- Recall the main method
- Woocommerce Different Products Different Currency
- Rails render js file but can't execute it
- My rotated TextView is cut off. What i have to do?
- Store object created by gson in greenDao
- Clicking on array of images to add them to Konva stage
- How to sort a Google Charts DataTable or DataView using a function?
- 2 column layout looping through MVC model c#
- Integrating SVN with TFS
- Rails - after_initialize or initializer
- xcode open url in second view controller based on button pressed in first view controller