Right now cron-media utilizes some queries that, while executed on big database, are extremely slow (yes DISTINCT, I am looking at you).
Implement media queue.
Whenever an user is updated, all its media should be added to queue.
After successful user queue run, media queue should be run.
Right now cron-media utilizes some queries that, while executed on big database, are extremely slow (yes
DISTINCT
, I am looking at you).Implement media queue. Whenever an user is updated, all its media should be added to queue. After successful user queue run, media queue should be run.