Type alias QueryTrackingOptions

QueryTrackingOptions: {
    enabled?: boolean;
    maxQueryStringLength?: number;
    maxSlowQueries?: number;
    slowQueryThreshold?: number;
    trackBindVars?: boolean;
    trackSlowQueries?: boolean;
}

Options for query tracking.

See Database#queryTracking.

Type declaration

  • Optional enabled?: boolean

    If set to false, neither queries nor slow queries will be tracked.

  • Optional maxQueryStringLength?: number

    Maximum query string length in bytes that will be kept in the list.

  • Optional maxSlowQueries?: number

    Maximum number of slow queries to be kept in the list.

  • Optional slowQueryThreshold?: number

    Threshold execution time in seconds for when a query will be considered slow.

  • Optional trackBindVars?: boolean

    If set to true, bind parameters will be tracked along with queries.

  • Optional trackSlowQueries?: boolean

    If set to true and enabled is also set to true, slow queries will be tracked if their execution time exceeds slowQueryThreshold.