Pipeline Design for Bulk Record Updates
Hi all. I have a timecards table where users track all the things they're working on. Relatedly, we have a separate child timecard table, with a narrower field list but otherwise the exact same records. This was done a while ago to reduce volume on long term storage of these records because we hit the table limit of 500 MB. So anytime a timecard record gets created or edited in the parent table, there's a pipeline that checks to see if the record has any related child timecard records. If not, it creates a new child timecard record with all the relevant fields populated. If there is already a child timecard record, it updates that child record with all the newest field values. Then as the last step (only for new timecards), updates the newly created child timecard record with the Related Parent Timecard value so it's easy to verify all timecards have exactly 1 child record. Other than being resource-intensive, this pipeline works perfectly fine most of the time.
However, twice/month, we export all our timecards to another system outside Quickbase, which is tracked with a date and checkbox field being updated via Find & Replace in a report to prove they were exported. The problem is, there are often around 5,000 records being updated simultaneously. When that update occurs, with so many timecards being updated all at once, a queue builds up that can take hours for the pipeline to process and update all of the underlying child records. Beyond general performance issues, users are often still creating new timecards, which don't show up for a while in the child timecard table because those new timecards are now in the back of the line to be created/updated.
I want to redesign the pipeline using the On New Bulk Event step, so these records can be processed, created/edited all at once so a queue doesn't build up and take hours to finish running and cause confusion amongst end users. What's the best way to go about that? I tried replacing the trigger from an On New Event to an On New Bulk Event, while leaving everything else about the pipeline the same, but if anything, it's taking even longer than before.