Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a background job to prune outdated sync tokens #31064

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

tcitworld
Copy link
Member

We remove all outdated sync tokens, based on their auto-incremented ID.

By default we only keep the last 10 000, but this can be configurable.

Closes #3349

We can add

$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);

if #30945 is merged first.

@miaulalala
Copy link
Contributor

Looks good, but code scanning is complaining a bit :)

@nickvergessen
Copy link
Member

if #30945 is merged first.

It's merged

@tcitworld tcitworld added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Mar 2, 2022
@skjnldsv skjnldsv mentioned this pull request Mar 24, 2022
@blizzz blizzz mentioned this pull request Mar 31, 2022
This was referenced Apr 7, 2022
@blizzz blizzz modified the milestones: Nextcloud 24, Nextcloud 25 Apr 21, 2022
This was referenced Aug 12, 2022
@blizzz blizzz mentioned this pull request Aug 24, 2022
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
}

public function run($argument) {

Check notice

Code scanning / Psalm

MissingReturnType

Method OCA\DAV\BackgroundJob\PruneOutdatedSyncTokensJob::run does not have a return type, expecting void
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
}

public function run($argument) {

Check notice

Code scanning / Psalm

MissingParamType

Parameter $argument has no provided type
This was referenced Aug 30, 2022
@blizzz blizzz mentioned this pull request Sep 9, 2022
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@tcitworld tcitworld added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 2, 2022
@szaimen
Copy link
Contributor

szaimen commented Oct 27, 2022

/rebase

We remove all outdated sync tokens, based on their auto-incremented ID.

By default we only keep the last 10 000, but this can be configurable.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
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 feature: caldav Related to CalDAV internals feature: carddav Related to CardDAV internals feature: dav performance 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oc_calendarchanges in MySQL is very big
6 participants