Multiple times retrieve information of project_id in Delete domain

Bug #1764282 reported by lucky on 2018-04-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)

Bug Description

In Delete domain usecase, Redundant SQL queries are getting executed, which can lead to performance delay.
In Delete domain use case, select query is executed multiple times to retrieve information of project_id. This must be reduced to enhance the performance.

Code change is required for handling the redundant SQL queries.
There is a need to change the code in keystone/token/ so that the extra queries will be removed.

Lance Bragstad (lbragstad) wrote :

Thanks for the bug report. I can imagine there is some duplication here. Did you use a tool or have specific steps to determine the redundancies?

Setting the priority here to Low since a common workaround is to enable caching.

description: updated
Changed in keystone:
importance: Undecided → Low
status: New → Triaged
tags: added: performance
lucky (luckysingh) wrote :

@lance Bragstad : I have enabled mysql logs and then verified it.

summary: - Mutilple times retrieve information of project_id in Delete domain
+ Multiple times retrieve information of project_id in Delete domain
tags: added: sql
wangxiyuan (wangxiyuan) on 2018-08-03
Changed in keystone:
assignee: nobody → wangxiyuan (wangxiyuan)

Fix proposed to branch: master

Changed in keystone:
status: Triaged → In Progress

Submitter: Zuul
Branch: master

commit 44da48f013881e87f8ac099cf7462d00d804ddd3
Author: wangxiyuan <email address hidden>
Date: Mon Aug 6 15:05:25 2018 +0800

    Remove redundant get_project call

    This patched removed some redundant "get_project" calls when
    deleting projects/domains.

    Change-Id: Ife4dd18962077bac30fa1cecf7621cc86a62929c
    Closes-bug: #1764282

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
milestone: none → rocky-rc1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers