New search function et drag and drop clean
This commit is contained in:
26
notes/projets/backend/database-schema.md
Normal file
26
notes/projets/backend/database-schema.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: "Database Schema"
|
||||
date: "10-11-2025"
|
||||
last_modified: "10-11-2025:19:21"
|
||||
tags: ["projet", "backend", "database"]
|
||||
---
|
||||
|
||||
# Database Schema
|
||||
|
||||
## Indexer
|
||||
|
||||
L'indexer maintient une structure en mémoire:
|
||||
|
||||
```go
|
||||
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
|
||||
Reference in New Issue
Block a user