Skip to content

Bulk-write documents on Notion import #302

@priethor

Description

@priethor

The Notion importer (#275) creates documents one at a time. Each is a separate insert, plus its meta, plus a term assignment, so a large database means a lot of round-trips.

Proposed solution: batch the writes. Insert documents in chunks, prime caches once, and write meta and trait terms in bulk instead of per document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: performancePerformance budgets, profiling, benchmarks, and regressions.type: enhancementImprovement to existing behavior.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions