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

Performance issue in consent event executor #219

Open
aka4rKO opened this issue Dec 11, 2024 · 0 comments
Open

Performance issue in consent event executor #219

aka4rKO opened this issue Dec 11, 2024 · 0 comments

Comments

@aka4rKO
Copy link
Contributor

aka4rKO commented Dec 11, 2024

Description:
With the fixing of a metrics issue related to the recipientCount[1] not updating as expected with the PR[2], it introduces a performance hit as during a business user consent creation when there are multiple users to create authorization resources. We have solved the issue[1] by invoking the DB to retrieve the detailed consent resource to identify the primary user.

However this has an impact on the performance since when there are multiple users this DB call is invoked multiple times.

We need to find a way optimize this solution without breaking the functionality

[1] OB Internal 934
[2] wso2/reference-implementation-consumerdatastandards-au#57

Steps to reproduce:

  1. Enable data publishing
  2. Create a business user consent while debugging the CDSConsentEventExecutor.processEvent method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant