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 for microsoft.applications #5116

Open
1 of 2 tasks
vjeffrey opened this issue Jan 23, 2025 · 4 comments
Open
1 of 2 tasks

slow queries for microsoft.applications #5116

vjeffrey opened this issue Jan 23, 2025 · 4 comments
Assignees

Comments

@vjeffrey
Copy link
Contributor

vjeffrey commented Jan 23, 2025

  • microsoft.applications.all( certificates != empty )
  • microsoft.applications.length

both of these queries have been found to be slow at scale, we need to investigate how to make them more performant

@afiune
Copy link
Contributor

afiune commented Feb 4, 2025

RFR #5161

microsoft.applications.length

@afiune
Copy link
Contributor

afiune commented Feb 4, 2025

For:

microsoft.applications.all( certificates != empty )

I would do this:

microsoft.applications(withCertificates: true).all()

@afiune
Copy link
Contributor

afiune commented Feb 4, 2025

After researching about how to fetch applications only with/without certificates I found out that it is not supported, even though it is listed in the documentation that it should work, it does not

https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0

We need to find a better way to make this query more performant 🤔 still researching but open to ideas.

@afiune
Copy link
Contributor

afiune commented Feb 4, 2025

I am unable to find a way to filter by empty certificates, we should probably split this issue for now.

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

2 participants