# Post Trade Reporter Settings Source: https://documentation-external.onezero.com:4434/Hub_help_9_0/Content/HubReferences/Settings/PTRs/Post_Trade_Reporter.htm Post Trade Reporter Settings The Post Trade Reporter (PTR) settings page contains connection and alert settings that are shared by all PTR adapters set up on the Hub. To access: Navigate to Settings > Post Trade Reporter Settings from the dropdown. Select one of the following settings to configure. Some settings are not contained in a dropdown section of the Post Trade Reporter Settings page. Those settings are covered in the following table. Setting Description Setting Description Enabled If selected, enables the PTR. Enabled If selected, enables the PTR. Other Settings Setting Description Setting Description Query Execution Time Threshold for Auto ANALYZE If a PTR SQL query takes longer than this amount of time to complete, a database 'ANALYZE' operation may be triggered on the Trades Processed table. Notes: 'ANALYZE' updates statistics related to the contents of the Trades Processed Table in the database, which can help speed up the PTR query. Whether this setting is triggered depends on the value set in Minimum Interval of ANALYZE and the time elapsed since the last ANALYZE operation. Query Execution Time Threshold for Auto ANALYZE If a PTR SQL query takes longer than this amount of time to complete, a database 'ANALYZE' operation may be triggered on the Trades Processed table. Notes: 'ANALYZE' updates statistics related to the contents of the Trades Processed Table in the database, which can help speed up the PTR query. Whether this setting is triggered depends on the value set in Minimum Interval of ANALYZE and the time elapsed since the last ANALYZE operation. Minimum Interval of ANALYZE Specifies the minimum delay between ANALYZE runs on the Trades Processed Table. If multiple ANALYZE requests trigger during this interval, only the first one is executed. Minimum Interval of ANALYZE Specifies the minimum delay between ANALYZE runs on the Trades Processed Table. If multiple ANALYZE requests trigger during this interval, only the first one is executed. DB Execution Warning Check Time Range Specifies the maximum database query execution time before warnings are logged. Guideline: Valid range is 100 milliseconds to 1 hour. DB Execution Warning Check Time Range Specifies the maximum database query execution time before warnings are logged. Guideline: Valid range is 100 milliseconds to 1 hour. Settings used to connect databases to retrieve trade information from. Note: The connections configured here are used to autofill the Database Connection in the FIX Post Trade Reporter and any other enabled Post Trade Reporters. Setting Description Setting Description Host The IP address that the PTR accesses to connect to the Database. Host The IP address that the PTR accesses to connect to the Database. Port The port that the PTR accesses to connect to the database. Port The port that the PTR accesses to connect to the database. Database Name SQL database name. Database Name SQL database name. User ID User for the database. User ID User for the database. Password Password for database. Password Password for database. DB Connection Name A unique name used to identify this database. Note: The DB Connection Name is used by individual Post Trade Reporter adapters (e.g. the FIX PTR) to connect to a database and report trades. DB Connection Name A unique name used to identify this database. Note: The DB Connection Name is used by individual Post Trade Reporter adapters (e.g. the FIX PTR) to connect to a database and report trades. Trades Processed Table Name A unique name for the database table that processes trades. Trades Processed Table Name A unique name for the database table that processes trades. Connection Pool Size for Performing Adapter Queries When a PTR Adapter queries the database for new trades, it does so using a database connection from this pool. The pool's connections are shared by the adapters in a round robin fashion. By having a bigger connection pool, adapters that are performing large queries and have a lot of work to do are less likely to starve out other adapters. However, each additional connection counts against the PostgreSQL server's overall connection limit. Note: The PTR Adapter automatically limits the actual connection pool size to the number of loaded PTR Adapter modules. There can never be more connections than configured adapters. Connection Pool Size for Performing Adapter Queries When a PTR Adapter queries the database for new trades, it does so using a database connection from this pool. The pool's connections are shared by the adapters in a round robin fashion. By having a bigger connection pool, adapters that are performing large queries and have a lot of work to do are less likely to starve out other adapters. However, each additional connection counts against the PostgreSQL server's overall connection limit. Note: The PTR Adapter automatically limits the actual connection pool size to the number of loaded PTR Adapter modules. There can never be more connections than configured adapters. Use these settings to set a time range within which an alert is raised if a database query execution breaches a threshold value. This can be used to avoid sending alerts during weekends and maintenance periods, for example. Start Setting Description Setting Description Day of the Week The day on which the time range begins. Options: MTWThFSatSun & Daily Day of the Week The day on which the time range begins. Options: MTWThFSatSun & Daily Time Of Day The time at which the time range begins in HHHH:MM: SS.UUUUUU Time Of Day The time at which the time range begins in HHHH:MM: SS.UUUUUU Time Zone The time zone that applies to the time range. Available Time Zones: UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago Time Zone The time zone that applies to the time range. Available Time Zones: UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago End Setting Description Setting Description Day of the Week The day on which the time range ends. Options: MTWThFSatSun & Daily Day of the Week The day on which the time range ends. Options: MTWThFSatSun & Daily Time Of Day The time at which the time range ends in HHHH:MM: SS.UUUUUU Time Of Day The time at which the time range ends in HHHH:MM: SS.UUUUUU Time Zone The time zone that applies to the time range. Available Time Zones: UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago Time Zone The time zone that applies to the time range. Available Time Zones: UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago UTC/GMT (Default) America/New York Pacific/Auckland Europe/London Europe/Moscow Europe/Zurich Asia/Dubai Asia/Jakarta Asia/Hong_Kong Asia/Singapore Asia/Tokyo Australia/Sydney America/Chicago