You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/01/21 20:53:19 UTC

[jira] [Resolved] (OAK-1343) Performance issue with login()/getGroupMembership() with many users

     [ https://issues.apache.org/jira/browse/OAK-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu resolved OAK-1343.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.15
         Assignee: Alex Parvulescu

I've fixed a bug in the reference index where the provided uuid was not used for the query, so the query engine would traverse all existing references in the index, that is why this warning only appeared in the case of > 1k values.

For the 'members' property index I've created OAK-1347 with a really low prio.

http://svn.apache.org/r1560146

> Performance issue with login()/getGroupMembership() with many users
> -------------------------------------------------------------------
>
>                 Key: OAK-1343
>                 URL: https://issues.apache.org/jira/browse/OAK-1343
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.14
>            Reporter: Stefan Egli
>            Assignee: Alex Parvulescu
>             Fix For: 0.15
>
>
> (Tested with oak-snapshot as of ca 11:59AM, Jan 20, 2014 CET)
> When doing performance tests against oak I run into a major slowdown with each request showing the following WARNs:
> {code}
> 21.01.2014 11:42:51.625 *WARN* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy Traversed 1000 nodes using index :weakreferen
> ces(294de355-7d9d-30b3-92d8-a1e6aab028cf) with filter Filter(, path=/*)
> ...
> 21.01.2014 11:42:55.345 *WARN* [FelixStartLevel] org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy Traversed 8000 nodes using index :weakreferen
> ces(294de355-7d9d-30b3-92d8-a1e6aab028cf) with filter Filter(, path=/*)
> {code}
> I traced this down to the following call:
> PrincipalProviderImpl.getGroupMembership
> In my performance test I create 1000 test users and it looks like the above call is currently very inefficient with that many users. This call happens during login(), so on each request you get the WARNs above, and subsequently each request is really slow.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)