Notion reduced repeated search-indexing work by distinguishing text changes from changes to a page's properties. Its search system divides pages into passages and turns each passage into a numerical representation of meaning. Previously, even a small edit caused every passage on the page to be processed again, according to its engineering retrospective.
The revised system stores separate fingerprints for passage text and MetadataData about a file, such as its name, size and timestamps, as distinct from its contents.Full definition →, such as permissions. It regenerates representations only for changed text; a permissions-only edit updates metadata instead. Notion reports a 70% reduction in data volume from these changes, reducing both embeddingA list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.Full definition → work and database writes.
Terms in this piece · Glossary
Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.
embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
Retrieval — Selecting evidence relevant to the current request.
Path — A description of a file or folder location, written using directory names and separators.