Datastore Conversion
Jamroom Developers
AH! This is an important feature for you to know about @tig, queue workers. They are a way to move the processing of whatever needs done to the background so the person running the integrity check (or whatever) doesnt need to wait for the process that was started to finish.
In the performance improvement for jrComment the key is added byt the jrComment_verify_db_worker().
That worker is started in the 'repair_module' listener with:
// Verify comments
jrCore_queue_create('jrComment', 'verify_db', array('count' => $num), 0, null, 1);
So if its going to take a long time to complete, pass it off to a queue worker.
Docs: "The Queue System"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1543/the-queue-system