polarsignals / frostdb

❄️ Coolest database around 🧊 Embeddable column database written in Go.
Apache License 2.0
1.29k stars 65 forks source link

Fix query concurrency #861

Closed thorfour closed 4 months ago

thorfour commented 4 months ago

The aggregators exepct to have a final aggregation. In the concurrency = 1 case we weren't correctly aggregating because no final aggregation was created.

This removes the requirement for concurrency to be > 1 for a syncronizer and final aggregation to be created.

Ideally in the future we would just schedule a single aggregation that handles both being a normal and final aggregation but this is a simple fix for an edge case that isn't important at this point.

Fixes #769