Overview

This migration guide covers the breaking changes introduced in Blnk v0.11.0, specifically related to Typesense/Search functionality. The main change involves upgrading the Typesense server from version 0.23.x to 0.24.x, which requires updating your Docker configuration.

Breaking changes summary

  • From: Typesense 0.23.x
  • To: Typesense 0.24.x
  • Impact: Breaking changes in API compatibility and schema handling

Migration steps

1

Update Docker configuration

Update your Typesense server version in your Docker configuration files.
  1. For Production (docker-compose.yaml)
    # Before (v0.10.x and lower)
    typesense:
      image: typesense/typesense:0.23.1
    
    # After (v0.11.0)
    typesense:
      image: typesense/typesense:0.24.0
    
  2. For Development (docker-compose.dev.yaml)
    # Before (v0.10.x and lower)
    typesense:
      image: typesense/typesense:0.23.1
    
    # After (v0.11.0)
    typesense:
      image: typesense/typesense:0.24.0
    
  3. For Kubernetes (infrastructure/k8s-manifests/typesense-deployment.yaml)
    # Before (v0.10.x and lower)
    containers:
      - image: typesense/typesense:0.23.1
    
    # After (v0.11.0)
    containers:
      - image: typesense/typesense:0.24.0
    
2

Allow automatic schema migration

The new version includes automatic schema migration capabilities. When you start Blnk v0.11.0, it will automatically:
  1. Detect existing collections in your Typesense instance.
  2. Compare schemas between your current collections and the latest schema definitions.
  3. Add new fields to existing collections without data loss.
  4. Create missing collections with the latest schema.
Collections affected:
  • ledgers.
  • balances.
  • transactions.
  • reconciliations.
  • identities.
3

Schema improvements

  1. Ledgers collection:
    • Enhanced metadata handling with object type support.
    • Improved nested field support.
  2. Balances collection:
    • All balance fields now use string type for precise decimal handling.
    • Enhanced metadata object support.
    • Improved nested field capabilities.
  3. Transactions collection:
    • precise_amount field uses string type for exact decimal precision.
    • Enhanced metadata object support.
    • Improved nested field capabilities.
  4. Reconciliations collection:
    • No breaking changes to existing fields.
    • Enhanced performance optimizations.
  5. Identities collection:
    • Enhanced metadata object support.
    • Improved nested field capabilities.
4

Start Blnk v0.11.0

Start your updated Blnk instance. The system will automatically handle data migration including:
  1. Large number conversion: Automatically converts big.Int values to strings for Typesense compatibility.
  2. Metadata normalization: Handles metadata field normalization for object schemas.
  3. Time field normalization: Ensures consistent timestamp formatting.
No manual intervention is required for data migration - everything happens automatically.
5

Configuration compatibility

No changes to environment variables or configuration files are required. All existing configurations remain compatible.
  • Environment variables remain the same.
  • blnk.json configuration structure unchanged.
  • Search API endpoints unchanged.
  • Response formats remain compatible.
API Endpoints (No Changes Required):
# Single collection search
POST /search/{collection}

Testing checklist

After migration, verify the following:
  • Typesense server starts successfully.
  • All collections are accessible.
  • Search functionality works correctly.
  • Data integrity is maintained.
  • API endpoints respond correctly.
  • No errors in application logs.

Performance improvements

Blnk v0.11.0 includes several performance improvements:
  1. Enhanced search performance: Optimized query execution.
  2. Improved memory usage: Better resource management.
  3. Faster schema updates: Streamlined collection management.
  4. Better error handling: More robust error recovery.
This migration guide covers the breaking changes in Blnk v0.11.0. For additional features and improvements, refer to the release notes

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.