HexHexDocsCI statusCoverage: 100%License

Collect builds and maintains a document table: a continuously updated table that stores precomputed, searchable data derived from a source table and, optionally, its joined tables. Instead of joining and searching across several tables at query time, an application queries a single flat, indexed table.

Motivation

Reading data that is spread across joined tables - and searching its text - is expensive to do on every query. The usual way to speed this up is to precompute the result, but the common approaches have drawbacks:

Collect keeps the document table up to date by updating only the rows that have changed. Database triggers record which source rows are affected by a change, and a merge step rebuilds only those rows. Because it never rebuilds the entire table, the document table can stay current regardless of how large the source tables grow.

Features

Requirements