Hi Gayan,

On Thu, Mar 2, 2017 at 9:58 AM, Gayan Gunawardana <[email protected]> wrote:

>
> Hi All,
>
> How listUsers, listGroups methods should behave when domain is not
> specified ?
>
>
> *1. listUsers(int offset, int length)*
> Take primary domain as user store domain and provide paginated result.
>
>
> *2. listUsers(Claim claim, int offset, int length)*Take primary domain as
> user store domain and provide paginated, filtered result.
>
>
> *3. listUsers(MetaClaim metaClaim, String filterPattern, int offset, int
> length)*Take primary domain as user store domain and provide paginated,
> filtered result.
>
>
> *4. listUsers(List<Claim> claims, int offset, int length)*
> Iterate through all user store domains and provide paginated, filtered
> result.
>
> IMO behavior of *1* is correct but *2, 3, 4 need to be *consistent. I
> think *2, 3 *also behave as *4*. Please correct me If I am wrong.
>


*2, 3 Cases -*

Searching using a claim or meta-claim are high-cost operations to the DB
(or whatever connector). Complexity of these operations are as follows,

- How to decide offset? you have to search through each domain for that
claim/meta-claim until you meet the offset
- Need to get Unique user id for each connector user id found in the search
so multiple calls need to be made to the each domain unique id resolvers
- Added complexity in the pagination

So this operation will consume lot of DB resources, ultimately slowing down
other operations

*4 Case -*

This also should behave like 2 and 3 cases. Otherwise, we will face above
mentioned problems.



>
> Thanks,
> Gayan
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: [email protected]
> Mobile: +94 (71) 8020933
>


Thanks,
Thanuja
-- 
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to