Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Token cleanup isn't performing very well with large amounts of data #7

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

EmperorLeo
Copy link

@EmperorLeo EmperorLeo commented Jan 27, 2019

What issue does this PR address?
Poor token cleanup performance

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • Unit Tests for the changes have been added (for bug fixes / features)

Other information:
I noticed that the select query being generated by EntityFrameworkCore starts timing out more as more data is inserted into the PersistedGrants table. I'm not exactly sure why the costly "OrderBy" method is needed here, since it shouldn't matter what order the expired tokens are deleted in.

@MichelZ
Copy link

MichelZ commented Mar 18, 2019

@brockallen @leastprivilege @scottbrady91 Is this something you'd consider including please?
Performance enhancements are always nice to have :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants