Files
personotes/notes/projets/backend/database-schema.md

451 B

title, date, last_modified, tags
title date last_modified tags
Database Schema 10-11-2025 10-11-2025:19:21
projet
backend
database

Database Schema

Indexer

L'indexer maintient une structure en mémoire:

type Indexer struct {
    tags map[string][]string
    docs map[string]*Document
    mu   sync.RWMutex
}

Performance

  • Indexation en O(n) au démarrage
  • Recherche en O(1) pour les tags
  • Re-indexation incrémentale avec fsnotify