I have a Ruby on Rails site. One of the index pages has a table with multiple rows. I also have a background job that does certain operations on each row, which takes about 5-10 seconds each.
I would like to update the status for each row from 'Processing...' to 'Done' when the processing in the background job has completed.
I was thinking to use Action Cable to do the update, but to date I only used Action Cable to update only one element on a page, never multiple elements.
I was wondering what the correct way is to set-up my code to update the status in each row. Do I have to open a channel for each row separately?