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

EWPP-2210: Optimize query for sanitizing of user data. #155

Merged
merged 1 commit into from
May 16, 2022
Merged

Conversation

sergepavle
Copy link
Member

@sergepavle sergepavle commented May 2, 2022

OPENEUROPA-EWPP-2210

Description

On one of the sites (Epale – from EACEA) the sanitization led to memory issues and following further investigation the problem was pinpointed to the new sanitization in oe_authentication (see e3ca1f5). The problem is that the code implemented is loading in memory all users in a single go as objects and therefore the memory needed depends linearly on the number of users. For a large site such as EPALE (~130K users) this leads to more than 5GB RAM needed for the sanitization. Furthermore, the sanitization is done one by one which requires a very long time.

Related Github issue: #152

Change log

  • Added:
  • Changed: \Drupal\oe_authentication_user_fields\Commands\sql\UserSanitizeCommand, \Drupal\Tests\oe_authentication_user_fields\Functional\UserSanitizeCommandTest
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

@upchuk upchuk merged commit f1c60e5 into master May 16, 2022
@upchuk upchuk deleted the EWPP-2210 branch May 16, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants