Uh oh!
There was an error while loading. Please reload this page.
fix searching all users in repair regenerate birthday cal reparir job - #15141
Conversation
georgehrke
commented
Apr 17, 2019
Would it be better to replace this as well? |
blizzz
commented
Apr 17, 2019
aye |
blizzz
commented
Apr 17, 2019
and found two other spots |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
b02b6ca to
299f4d5Compareblizzz
commented
Apr 17, 2019
@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? |
blizzz
commented
Apr 23, 2019
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. callForAllUsersmight 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.
georgehrke
commented
Apr 23, 2019
The migration step doesn't generate all the birthday calendars itself, it only registers jobs to generate them later on in the background. |
blizzz
commented
Apr 23, 2019
Then, this should be fine. Search external backends is expensive. |
299f4d5 to
44a67ceCompareSigned-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
44a67ce to
96bab4fCompareblizzz
commented
Apr 24, 2019
/backport to stable16 |
backport to stable16 in #15219 |
The problem: my dev system on upgrade is working on that for almost an hour now…