Bug #71862 Add transaction start time to events_transactions_% tables

Submitted: 27 Feb 2014 11:40
Reporter: Jesper wisborg Krogh Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S4 (Feature request)
Version:5.7.3 OS:Any
Assigned to: Marc ALFF CPU Architecture:Any

[27 Feb 2014 11:40] Jesper wisborg Krogh
Description:
Currently there is no way to determine when a transaction started in "user time" (as opposed to the TIMER_START value that can't be converted to a human readable time).

This will be particularly useful in the events_transactions_current table for ongoing transactions as it will allow the user to calculate the age of the transaction.

Note: Currently you can get that information for InnoDB by joining through the performance_schema.threads table to the information_schema.INNODB_TRX table, but that is not lock free (INNODB_TRX requires similar locks as SHOW ENGINE INNODB STATUS) and is not storage engine independent.

Long running transactions is a common cause of issues with bloated InnoDB history lists, lock contention, etc. The Performance Schema transaction tables is the natural place to look for information about such transactions.

How to repeat:
N/A

Suggested fix:
N/A

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.