Description

Enabling the built-in OpenID Provider on a system with many user accounts results in excessive resource consumption. It appears to repeatedly scan the users directory.

Steps to reproduce

  1. Set

    openid_server_enabled = True

on a system with many user accounts (ours has several thousand).

Example

Component selection

  • Somewhere in user.py or caching.py perhaps? It looks like the name2id cache is ignored.

Details

MoinMoin Version

1.9.6

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

I guess I need more details (I am not using any openid features, so I can hardly test that) and maybe also someone to "debug" this. Maybe you can also contact the original author of the code, JohannesBerg.

I had a quick look at the code in Page.py (gets executed on each page view). It calls user.getUserId() - but that function is using name2id cache.

Plan

  • Priority:
  • Assigned to:
  • Status:


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.9OpenIDProviderPerformanc (last edited 2014年01月04日 23:10:29 by ThomasWaldmann )

AltStyle によって変換されたページ (->オリジナル) /