Skip to content

Conversation

heiytor
Copy link
Contributor

@heiytor heiytor commented Jun 17, 2025

No description provided.

@heiytor heiytor self-assigned this Jun 17, 2025
@heiytor heiytor requested review from a team as code owners June 17, 2025 08:20
@heiytor heiytor force-pushed the feat/device-cache-counter branch 2 times, most recently from efcf1f4 to c5e20cd Compare June 17, 2025 09:04
Add device count fields to namespace documents to cache device
statistics by status (accepted, pending, rejected). This eliminates the
need for expensive aggregation queries when retrieving namespace device
counts.

- Add NamespaceIncrementDeviceCount method to atomically update counters
- Modify UpdateDeviceStatus to maintain accurate counters on status
  changes
- Add migration 101 to populate initial counts from existing devices
@heiytor heiytor force-pushed the feat/device-cache-counter branch from c5e20cd to 5012135 Compare June 17, 2025 09:08
@heiytor heiytor force-pushed the feat/device-cache-counter branch from 5012135 to ce1fda2 Compare June 17, 2025 09:20
@gustavosbarreto gustavosbarreto merged commit ce29c17 into master Jun 17, 2025
8 checks passed
@gustavosbarreto gustavosbarreto deleted the feat/device-cache-counter branch June 17, 2025 14:50
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