Changes to run queries(not changestreams) for data processing #6390
Merged
Cookiezaurs merged 28 commits intonewarchitecturefrom Aug 15, 2025
Merged
Changes to run queries(not changestreams) for data processing #6390Cookiezaurs merged 28 commits intonewarchitecturefrom
Cookiezaurs merged 28 commits intonewarchitecturefrom
Conversation
added 3 commits
July 7, 2025 14:28
Core events, session, times-of day, data points
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR transitions from change stream-based data processing to query-based data processing for aggregation. It introduces new batch readers that process data in intervals rather than relying on real-time change streams for better performance and reliability.
- Replaces
changeStreamReaderwithdataBatchReaderfor periodic data aggregation - Updates aggregation plugins to use manual write batching instead of automatic batching
- Implements new query infrastructure for handling segmented event data retrieval
Reviewed Changes
Copilot reviewed 21 out of 24 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| test/3.api.write/5.write.app.events.js | Updates test validations to remove version/country metadata from expected results |
| plugins/times-of-day/api/aggregator.js | Converts from change streams to batch reading with timezone-aware processing |
| plugins/server-stats/api/aggregator.js | Migrates to batch processing and adds event type filtering |
| plugins/crashes/api/aggregator.js | Removes debug logging statements |
| api/parts/queries/events.js | Adds new segmented event data aggregation queries |
| api/parts/data/dataBatchReader.js | New batch reader implementation for interval-based processing |
| api/parts/data/batcher.js | Enhances write batcher with manual flush support |
| api/aggregator/processing.js | Core aggregation logic using new batch readers |
| api/aggregator.js | Restructures to use new query runner and manual batching |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
added 3 commits
August 13, 2025 13:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.