Skip to content

Conversation

@fabiomlferreira
Copy link

Description

This pull request refactors the IngestActivity to optimize its performance and fix critical issues:

  1. Reduced Write Queries:
    The number of write queries has been reduced from 2 to 1. Since this is a job that will run frequently, it's important to optimize it from the beginning to ensure better performance and scalability.

  2. Fixed Average Time Calculation:
    There was a major issue with the calculation of the average time. While it worked correctly for the first and second views, subsequent calculations were incorrect. This refactoring resolves the issue, ensuring the average time is calculated accurately.

  3. Integration with Other PR:
    This correction complements the improvements made in the IngestActivityTest submitted in a separate pull request. Together, these changes ensure the IngestActivity works reliably and is thoroughly tested.


Notes for Reviewers

This is a significant refactoring, and it’s recommended to review the code with caution, as the changes were implemented quickly. Please double-check the logic to ensure everything works as intended.

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.

1 participant