Suggestion for updating Large tables through QP

Hi, we have table of 6Million records, and we need to update each and every line according to the business conditions and the criteria depends on few factors which are associated with the case. We tried through multiple QPs but still it is taking long time to process. First QP will scan the case and determine the business logic, and second QP will do obj open and update the data and do obj-save. updating this data is taking long time and we are also seeing commit time is exceeding 500 ms. Did anyone try to update the data through QP for the table which has 6 million records. Any suggestions will be helpful. Thank you.

I would suggest using a Job Scheduler to fetch the records in smaller batches instead of processing all 6 million records at once. Try to combine the business logic and update operations into a single dedicated Queue Processor to reduce unnecessary database calls. Start with a batch size of 100 records and gradually increase it based on performance. Avoid explicit commits for every record and let the Queue Processor manage the transactions. Also, check database indexes, locking issues, and slow queries using PDC and PAL. Since the commit time is already exceeding 500 ms, work with the DBA team to identify the database bottleneck before increasing QP threads