feat(documents): timeline date-range filter with density bars (#385) #478

Merged
marcel merged 52 commits from feat/issue-385-timeline-density-filter into main 2026-05-08 12:27:17 +02:00
Showing only changes of commit 360db1ae33 - Show all commits

View File

@@ -1,9 +0,0 @@
-- Index on documents.meta_date for the timeline density aggregation (issue #385).
-- The new GET /api/documents/density endpoint does GROUP BY date_trunc('month', meta_date)
-- across the full table; an index keeps the aggregation cheap as the archive grows.
-- Cheap to add at any size and removes the future-investigation tax.
--
-- Note: the entity field is `documentDate` but it's mapped to the PostgreSQL column
-- `meta_date` (see Document.java @Column(name = "meta_date")).
CREATE INDEX IF NOT EXISTS idx_documents_meta_date ON documents (meta_date);