[Bug 1582585] [NEW] the speed of query user from ldap server is very slow

Launchpad Bug Tracker 1582585 at bugs.launchpad.net
Thu Jan 11 00:21:25 UTC 2018


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

In our project, the speed of query user from ldap server is very
slow,our ldap user number is 12,000,the query costs almost 45 seconds

The reason is that keystone will generate the uuid for the ldap users one by one and insert db.And second query time later,it also goes to db,not use the cache.
So adding the cache to improve the query speed

After adding @MEMOIZE to the following function
https://github.com/openstack/keystone/blob/master/keystone/identity/core.py#L580.
First query time almost costs 50 seconds,but second query time later it only costs 7 seconds.

So it is very necessary to improve this feature

** Affects: cloud-archive
     Importance: Undecided
         Status: New

** Affects: cloud-archive/mitaka
     Importance: High
         Status: Triaged

** Affects: cloud-archive/newton
     Importance: High
         Status: Triaged

** Affects: keystone
     Importance: Wishlist
     Assignee: Andrew Liu (andrew-lhj)
         Status: Fix Released

** Affects: keystone (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: keystone (Ubuntu Xenial)
     Importance: High
         Status: Triaged


** Tags: patch
-- 
the speed of query user from ldap server is very slow
https://bugs.launchpad.net/bugs/1582585
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list