fix searching all users in repair regenerate birthday cal reparir job #15141
fix searching all users in repair regenerate birthday cal reparir job #15141
Conversation
|
Would it be better to replace this as well? |
aye |
|
and found two other spots |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
b02b6ca to
299f4d5
Compare
|
@georgehrke but is there a reason to have it a repair step, not a background job that can be run once after upgrade is done? |
|
Anyway, i think we should merge and backport it, otherwise setups with a serious backend will have a long lasted upgrade. For .1 we can perhaps turn it to background job if possible. |
| public function syncInstance(\Closure $progressCallback = null) { | ||
| $systemAddressBook = $this->getLocalSystemAddressBook(); | ||
| $this->userManager->callForAllUsers(function($user) use ($systemAddressBook, $progressCallback) { | ||
| $this->userManager->callForSeenUsers(function($user) use ($systemAddressBook, $progressCallback) { |
There was a problem hiding this comment.
@schiessle Will this have any negative effect on federation?
There was a problem hiding this comment.
why should this affect federation? allForSeenUsers cycles over all known users. callForAllUsers might bring in new ones, but in any case it brings in a lot of overhead.
There was a problem hiding this comment.
syncInstance syncs the address book containing all users for federation. So instead of all users only users that have logged in before will be synced (i assume).
There was a problem hiding this comment.
No, all the users known to Nextcloud. This can be more than have logged in.
The migration step doesn't generate all the birthday calendars itself, it only registers jobs to generate them later on in the background. |
Then, this should be fine. Search external backends is expensive. |
299f4d5 to
44a67ce
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
44a67ce to
96bab4f
Compare
|
/backport to stable16 |
|
backport to stable16 in #15219 |
The problem: my dev system on upgrade is working on that for almost an hour now…