Skip to main content

Overview

By default, Arivu uses a local SQLite database (arivu.db) for all storage.

Pros ✅

  • Zero configuration - Works out of the box
  • Extremely fast for local use
  • No external dependencies - Self-contained database file
  • Perfect for development and testing
  • Not suitable for multi-worker production deployments - Single file can cause contention
  • Cannot be shared across machines - Local file only
  • Limited concurrent access - Not optimized for high concurrency

Configuration

SQLite requires zero configuration. Arivu automatically creates and manages the arivu.db file for you.

Database Structure

Session Data

Conversation history and state for each session

User Context

Session metadata and configuration

Memory Entries

Stored memories and retrieval metadata
Each session is isolated by session_id for multi-user support.

Performance Optimization

Storage

  • Local SSD recommended - Faster disk I/O for database operations
  • Store arivu.db on fast storage for better performance
  • Monitor disk space to ensure database can grow
  • Regular backups - Keep backups of your arivu.db file
  • Archive old sessions - Move completed sessions to archive for better performance

When to Use SQLite

Use SQLite when you:
  • Are developing locally
  • Building a single-user application
  • Need zero infrastructure overhead
  • Want the fastest local performance
SQLite is the perfect choice for getting started with Arivu quickly with zero setup!