[
https://issues.apache.org/jira/browse/NIFI-14245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17940552#comment-17940552
]
Yoshiaki Takahashi commented on NIFI-14245:
-------------------------------------------
h1. Performance comparison
h2. Prerequisites
h3. Environment
* The database type is MySQL
* The database is built on a server separate from NiFi Registry and accessed
over the network
h3. NiFi Registry users and buckets
* About 1000 users
* About 150 user groups
* As many buckets as user groups
** Bucket access policies are set for each user group
h2. Result
I measured the time it took for the list of users and user groups to appear in
the Web UI.
|| Caching before / after || time ||
| Before | About 40 seconds |
| After | About 1 second or less |
> Enable caching in DatabaseUserGroupProvider and DatabaseAccessPolicyProvider
> to improve performance
> ---------------------------------------------------------------------------------------------------
>
> Key: NIFI-14245
> URL: https://issues.apache.org/jira/browse/NIFI-14245
> Project: Apache NiFi
> Issue Type: Improvement
> Components: NiFi Registry
> Reporter: Yoshiaki Takahashi
> Assignee: Yoshiaki Takahashi
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When DatabaseUserGroupProvider and DatabaseAccessPolicyProvider are applied
> in NiFi Registry, the Web UI's user list display slows down as the number of
> users increases.
> This is because the current implementation runs more SQL queries in
> proportion to the number of users.
> By adding a cache mechanism to eliminate unnecessary SQL executions, we can
> speed up the user list display.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)