Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Mar 5, 2024

Calling clear on Redis is a heavy operation and can result in slow queries there. For the reference cache we can avoid in cases we know that we have never set entries with a prefix.

One common case is file references where we always called clear on file deletion, share adding/removal even though no references to those files were used.

@juliusknorr juliusknorr requested review from a team, ArtificialOwl, icewind1991, julien-nc, nfebe and nickvergessen and removed request for a team March 5, 2024 10:04
@juliusknorr juliusknorr added this to the Nextcloud 29 milestone Mar 5, 2024
@juliusknorr
Copy link
Member Author

/backport to stable28

@juliusknorr
Copy link
Member Author

/backport to stable27

@juliusknorr
Copy link
Member Author

/backport to stable26

@juliusknorr
Copy link
Member Author

/backport to stable25

@juliusknorr juliusknorr force-pushed the fix/avoid-cache-clear branch 2 times, most recently from ae4999b to 4b5250e Compare March 5, 2024 19:50
@skjnldsv skjnldsv force-pushed the fix/avoid-cache-clear branch from 4b5250e to 3acf087 Compare March 7, 2024 21:58
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 7, 2024
@skjnldsv skjnldsv enabled auto-merge March 7, 2024 21:58
@nickvergessen
Copy link
Member

There were 17 failures:

  1. OCA\UpdateNotification\Tests\Controller\AdminControllerTest::testCreateCredentials

Because @susnux PR was merged without passing CI, so either needs a rebase after #44074 is in or another blind red CI merge

@nickvergessen nickvergessen force-pushed the fix/avoid-cache-clear branch from 3acf087 to 972a611 Compare March 8, 2024 08:08
@skjnldsv skjnldsv merged commit b6691b3 into master Mar 8, 2024
@skjnldsv skjnldsv deleted the fix/avoid-cache-clear branch March 8, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug performance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants