brainy/examples
David Snelling 06f502ec4a feat: add direct storage access in write-only mode for efficient deduplication
Enables ID-based lookups in write-only mode without loading search indexes, solving the fundamental conflict between write-only optimization and deduplication needs.

Key Features:
- New allowDirectReads configuration option
- Direct storage methods: has(), exists(), getMetadata(), getBatch()
- Enhanced get() and getVerb() support in write-only mode
- Smart operation separation (storage vs. search operations)

Use Cases:
- Bluesky services: Avoid redundant profile API calls
- GitHub packages: Efficient user processing with existence checks
- General writer services: Smart deduplication without search overhead

Performance Benefits:
- 50-100% reduction in external API calls
- No search index memory usage
- Fast direct storage lookups
- Optimal for high-throughput data ingestion

Configuration:
const brainy = new BrainyData({
  writeOnly: true,        // Skip search index loading
  allowDirectReads: true  // Enable direct ID lookups
})

Includes comprehensive tests (26/26 passing), real-world demo, and complete README documentation with configuration examples.
2025-08-07 07:57:41 -07:00
..
brainy-service-template feat: add zero-configuration Brainy service template with augmentation-first architecture 2025-08-06 18:17:32 -07:00
cloud-deployments fix: update Dockerfile and README to replace model extraction with download 2025-08-05 20:39:39 -07:00
docker-deployment fix: update Dockerfile and README to replace model extraction with download 2025-08-05 20:39:39 -07:00
simple-deployment fix: update Dockerfile and README to replace model extraction with download 2025-08-05 20:39:39 -07:00
cli-wrapper-example.js **style(cli): update examples with consistent formatting and clean code** 2025-07-15 11:53:42 -07:00
flush-statistics-example.js **feat(examples, core, docs): add flushStatistics example, implementation, and documentation** 2025-07-25 10:55:37 -07:00
gpu-acceleration.js feat: add GPU acceleration for embeddings with smart device auto-detection 2025-08-05 20:00:04 -07:00
type-utils-example.js **feat(utils): add type utility functions and examples for runtime type management** 2025-07-31 14:24:16 -07:00
type-utils-example.ts **feat(utils): add type utility functions and examples for runtime type management** 2025-07-31 14:24:16 -07:00
write-only-direct-reads-demo.js feat: add direct storage access in write-only mode for efficient deduplication 2025-08-07 07:57:41 -07:00
write-only-mode.js **feat: add write-only mode support and example usage** 2025-07-30 13:32:30 -07:00