RevokeEvent.to_dict() is very slow
Bug #1634746 reported by
侯喆
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Richard |
Bug Description
When our keystone to valid token , it cost too much time on function check_revocation.
In the path /keystone/
>
events = [revoke_
It cost about 3 second and our database on revocation_event table has 38596 row.
Query sql from this table cost 0.01 second,but transfer this to a dict cost 3s.
---------------
mysql> select count(*) from revocation_event;
+----------+
| count(*) |
+----------+
| 38596 |
+----------+
summary: |
- check revocation too slow + RevokeEvent.to_dict() is very slow |
Changed in keystone: | |
assignee: | nobody → Richard (csravelar) |
status: | New → Fix Released |
To post a comment you must log in.
We have recently refactored this code and pushed some of the check into the SQL query itself [0]. Which version of keystone are you using?
[0] https:/ /github. com/openstack/ keystone/ commit/ 9e8437146183188 0ce5736e9888c7d 9648e3a77b