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

Slow queries due to application of access rules #250

Open
RKrahl opened this issue Apr 7, 2021 · 0 comments
Open

Slow queries due to application of access rules #250

RKrahl opened this issue Apr 7, 2021 · 0 comments

Comments

@RKrahl
Copy link
Member

RKrahl commented Apr 7, 2021

There is an issue for ids.server about some queries being excessively slow to an extent that requests timeout, see icatproject/ids.server#115. It turns out that this is caused by quite complicated conditions that icat.server adds to the queries to enforce the access rules.

@kevinphippsstfc provided a work around in icatproject/ids.server#118 that will fix the problem for ids.server, by doing the concerned queries in a privileged session, which essentially bypasses authorization. But of course, the root of the problem is the way how access rules are applied in icat.server and the same problem may occur again if other clients try to do the same queries. I assume this may affect any search for Datafiles if the facility has billions of them, like DLS.

I open this issue as a reminder that although the issue might be fixed in ids.server, the underlying problem still remains.

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

No branches or pull requests

1 participant