brainy/docs/guides
David Snelling 52782898a3 feat: implement progressive flush intervals for streaming imports
Progressive intervals adjust dynamically based on current entity count
(not total), making them work for both known and unknown totals.

**Key Features:**
- 0-999 entities: Flush every 100 (frequent early updates for UX)
- 1K-9.9K: Flush every 1000 (balanced performance)
- 10K+: Flush every 5000 (minimal overhead ~0.3%)

**Benefits:**
- Works with known totals (file imports)
- Works with unknown totals (streaming APIs, database cursors)
- Adapts automatically as import grows
- Zero configuration required

**Implementation:**
- Replaced adaptive intervals (requires total count) with progressive
- Added interval transition logging for observability
- Enhanced documentation to highlight engineering sophistication
- Final flush with statistics reporting

**Documentation:**
- Added "Engineering Insight" section showcasing advanced approach
- Updated all interval references from "adaptive" to "progressive"
- Added comprehensive examples in streaming-imports.md

Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 17:36:27 -07:00
..
distributed-system.md docs: update documentation for accurate v3.9.0 API examples and technical claims 2025-09-22 16:19:27 -07:00
enterprise-for-everyone.md fix: update all imports and references from BrainyData to Brainy 2025-09-30 17:09:15 -07:00
framework-integration.md feat: enhance framework integration and simplify codebase 2025-09-15 14:54:13 -07:00
getting-started.md feat: implement always-adaptive caching with getCacheStats monitoring 2025-10-10 14:09:30 -07:00
import-anything.md feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
import-flow.md feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
import-quick-reference.md feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
migrating-to-v4.md feat: add import API validation and v4.x migration guide 2025-10-21 15:25:12 -07:00
migration-3.36.0.md feat: implement always-adaptive caching with getCacheStats monitoring 2025-10-10 14:09:30 -07:00
model-loading.md fix: update all imports and references from BrainyData to Brainy 2025-09-30 17:09:15 -07:00
natural-language.md fix: update all imports and references from BrainyData to Brainy 2025-09-30 17:09:15 -07:00
neural-api.md fix: update all imports and references from BrainyData to Brainy 2025-09-30 17:09:15 -07:00
nextjs-integration.md feat: enhance framework integration and simplify codebase 2025-09-15 14:54:13 -07:00
streaming-imports.md feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
vue-integration.md feat: enhance framework integration and simplify codebase 2025-09-15 14:54:13 -07:00