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

Added new endpoints for Analytics #745

Merged
merged 8 commits into from
Feb 21, 2025

Conversation

larfeq
Copy link
Collaborator

@larfeq larfeq commented Feb 19, 2025

  • New feature
  • Bug fix
  • High impact

Description of work:

Thru the old endpoints PowerBI were able to pull alot of data and this forced us to upgrade the technical requirements of the server. To mitigate this problem new version of the same endpoints has been created using IAsyncEnumerable to return the data.

Further improvements might be needed.

AB#60374

Some test results for /analytics/requests/internal v1 vs v2:

In CI, both return 2098 enteties and 3.1 MB of data. V2 is 100-200 ms slower. Using Visual Studio diagnostics tools the object difference is 170 000 for v1 and 1686 for v2. The heap difference for v1 is 16 000 KB and for v2 is -45 KB. This measurement is tkane with a snapshot before and after execution of endpoint.

Testing:

  • Can be tested
  • Automatic tests created / updated
  • Local tests are passing

Checklist:

  • Considered automated tests
  • Considered updating specification / documentation
  • Considered work items
  • Considered security
  • Performed developer testing
  • Checklist finalized / ready for review

@larfeq larfeq force-pushed the feat/analytics/update-endpoints-to-IAsyncEnumerable branch from 6090394 to 01996c8 Compare February 19, 2025 11:31
Copy link

@andersndm andersndm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@larfeq larfeq changed the title Added new endpoints Added new endpoints for Analytics Feb 20, 2025
@larfeq larfeq marked this pull request as ready for review February 21, 2025 09:41
@larfeq larfeq merged commit 127b823 into master Feb 21, 2025
11 checks passed
@larfeq larfeq deleted the feat/analytics/update-endpoints-to-IAsyncEnumerable branch February 21, 2025 09:42
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

Successfully merging this pull request may close these issues.

3 participants