Skip to content

Conversation

@georgehrke
Copy link
Member

The RegenerateBirthdayCalendars repair step is not exactly mission critical and can get quite expensive, as it performs 1 individual sql insert for every user.

Instead of running this during the repair / upgrade, just register a single background-job that does it.

…ckground job

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
@georgehrke georgehrke added the 3. to review Waiting for reviews label May 23, 2019
@MorrisJobke
Copy link
Member

/backport to stable16

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!
Didn't test but code makes sense.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke MorrisJobke merged commit e7ae851 into master May 24, 2019
@MorrisJobke MorrisJobke deleted the bugfix/noid/calendar_birthday_move_repair_to_background branch May 24, 2019 13:55
@backportbot-nextcloud
Copy link

backport to stable16 in #15718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants