prorm API Reference
    Preparing search index...

    Interface BatchOptions

    Options for batch operations

    interface BatchOptions {
        chunkSize: number;
        useTransaction?: boolean;
        validate?: boolean;
        skipDuplicates?: boolean;
        logging?: (message: string) => void;
        onProgress?: (progress: BatchProgress) => void;
        stopOnError?: boolean;
    }
    Index
    chunkSize: number

    Maximum number of records per batch/chunk

    useTransaction?: boolean

    Whether to use transactions for batch operations

    validate?: boolean

    Whether to validate records before insertion

    skipDuplicates?: boolean

    Whether to skip duplicate key errors

    logging?: (message: string) => void

    Logging function

    onProgress?: (progress: BatchProgress) => void

    Callback for progress updates

    stopOnError?: boolean

    Throw on error or continue with other batches