Skip to content

Fix/batch processing schema mismatch#105

Merged
zephyranthes03 merged 4 commits intostagingfrom
fix/batch-processing-schema-mismatch
Jan 28, 2026
Merged

Fix/batch processing schema mismatch#105
zephyranthes03 merged 4 commits intostagingfrom
fix/batch-processing-schema-mismatch

Conversation

@zephyranthes03
Copy link
Contributor

Optimize batch operations: multi-row INSERT and N+1 query fixes

  • Fix list_files N+1 with HashMap-based watcher ID mapping
  • Rewrite batch_upsert_watchers: ~250 queries → 5 queries
  • Add 500-watcher chunking to prevent max_allowed_packet errors
  • Add batch size metrics logging
  • Remove duplicate UPSERT in register_watcher_group

- Fix list_files N+1 with HashMap-based watcher ID mapping
- Rewrite batch_upsert_watchers: ~250 queries → 5 queries
- Add 500-watcher chunking to prevent max_allowed_packet errors
- Add batch size metrics logging
- Remove duplicate UPSERT in register_watcher_group
@zephyranthes03 zephyranthes03 merged commit 016accf into staging Jan 28, 2026
6 checks passed
@zephyranthes03 zephyranthes03 deleted the fix/batch-processing-schema-mismatch branch January 28, 2026 19:36
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