Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize create ACL dependencies handling #23

Open
igorlesnenko opened this issue Jun 15, 2017 · 0 comments
Open

Optimize create ACL dependencies handling #23

igorlesnenko opened this issue Jun 15, 2017 · 0 comments

Comments

@igorlesnenko
Copy link
Member

Optimize create ACL dependencies handling query.
Need to add dependent item ID. In order to avoid querying a lot of items.

e.g. currently we are creating single item, providing boardId. Instead of fetching this particular boardId we are fetching all items for which we able to create child item. Not good.

{ "$or": [ { "$or": [ { "userId": { "$oid": "592bf36fa4dd628ff4e1fed5" } }, { "memberships.userId": { "$oid": "592bf36fa4dd628ff4e1fed5" }, "memberships.role": "member" } ] }, { "$or": [ { "userId": { "$oid": "592bf36fa4dd628ff4e1fed5" } }, { "memberships.userId": { "$oid": "592bf36fa4dd628ff4e1fed5" }, "memberships.role": "member" } ] } ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant