prorm API Reference
    Preparing search index...

    Interface TablesampleOptions

    Options for

    decorator

    interface TablesampleOptions {
        method: TablesampleMethod;
        percentage?: number;
        pages?: number;
        seed?: number;
        timestamp?: string | Date;
        repeatable?: number;
    }
    Index

    Sampling method

    percentage?: number

    Percentage of rows to sample (1-100) For BERNOULLI and SYSTEM

    pages?: number

    Number of pages to sample For SYSTEM method

    seed?: number

    Seed for reproducible sampling For BERNOULLI method

    timestamp?: string | Date

    Timestamp for SYSTEM_TIME method (PostgreSQL 15+)

    repeatable?: number

    Repeatable value for consistent samples For BERNOULLI and SYSTEM