Commit Graph

379 Commits

Author SHA1 Message Date
d435267600 statistics: track used stats status during query (#37101)
ref pingcap/tidb#36481
2022-08-25 12:14:21 +08:00
4cf7eeee64 planner: add warn log for sync stats (#36956) 2022-08-22 15:24:20 +08:00
d5ce00e8b0 executor: generate fields in chunkRowRecordSet lazily (#37156)
ref pingcap/tidb#36049
2022-08-17 12:02:51 +08:00
b705a13c7b planner: unify the Compile and CompileExecStmt functions (#37065)
ref pingcap/tidb#36598
2022-08-16 18:36:51 +08:00
e38c45cd8c *: save some WithLabelValues (#37106)
ref pingcap/tidb#36049
2022-08-16 14:48:51 +08:00
ba8e7cc78e planner: remove keyword prepared in plan cache backend (#37023)
ref pingcap/tidb#36598
2022-08-10 17:50:48 +08:00
45f82afa20 executor: revert #36498 to avoid perf regression (#37005)
ref pingcap/tidb#36438
2022-08-10 10:42:48 +08:00
6c8bb7cf15 executor: avoid log empty binary plan into slow log (#36619)
close pingcap/tidb#36617
2022-07-27 18:37:11 +08:00
c80026e61f executor: also collect unchanged unique keys for lock (#36498)
close pingcap/tidb#36438
2022-07-25 21:43:11 +08:00
8bc002e77c table partition: add telemetry for partition table (#36204)
close pingcap/tidb#34949
2022-07-22 11:53:09 +08:00
23f25af211 executor,metrics: add a metric for observing execution phases (#35906)
ref pingcap/tidb#34106
2022-07-21 21:31:09 +08:00
a52656fde4 *: add binary plan in stmt summary and slow log/query (#35698)
close pingcap/tidb#35889
2022-07-20 18:21:09 +08:00
7953d60c1b *: switch to flat plan in stmt summary, slow log, etc (#36069)
ref pingcap/tidb#35888
2022-07-14 17:37:06 +08:00
28c96008a9 executor: check the error returned by handleNoDelay (#36105)
close pingcap/tidb#35105
2022-07-13 19:45:05 +08:00
c76d686e67 *: add telemetry support for multi-schema change (#35977)
ref pingcap/tidb#14766
2022-07-06 16:27:03 +08:00
2df6be5282 *: Make the code cleaner in session.ExecutePreparedStmt (#35943)
close pingcap/tidb#35925
2022-07-06 12:51:02 +08:00
157c178f27 *: seperate TxnScope and ReplicaReadScope (#35877)
close pingcap/tidb#31772
2022-07-05 11:33:02 +08:00
16e5815f18 txn: txnManager providers GetReadSnapshot and GetForUpdateSnapshot. (#35788)
close pingcap/tidb#35810
2022-07-01 18:12:40 +08:00
5b305c34f8 txn: manage the initialization of RCCheckTS by transaction context provider (#35554)
close pingcap/tidb#35497
2022-06-29 16:14:39 +08:00
0998cba23d txn: refactor ts acquisition within build and execute phases (#35376)
close pingcap/tidb#35377
2022-06-27 11:58:38 +08:00
db02b4addf *: Provide a util to "pause" session in uint test (#35529)
close pingcap/tidb#35526
2022-06-24 20:06:38 +08:00
2e1e3f1269 *: Introduce OptimisticTxnContextProvider for optimistic txn (#35131)
close pingcap/tidb#35130
2022-06-21 00:04:37 +08:00
45a9a7e5ab txn: fix bug that some times lock ts and read ts are not the same (#35470)
close pingcap/tidb#35459
2022-06-17 18:20:36 +08:00
22e9f4dc9e txn: Provide PessimisticRCTxnContextProvider for RC isolation (#34702)
close pingcap/tidb#34746
2022-06-02 15:36:28 +08:00
1fac141f35 *: close the resource on error to aovid resource leak (#34837)
close pingcap/tidb#34666, ref pingcap/tidb#34849
2022-05-30 18:00:27 +08:00
856e82ad6a txn: add methods to handle error for TxnManager (#34489)
close pingcap/tidb#34533
2022-05-13 16:00:37 +08:00
0703a64f76 planner: plan cache always check scheme valid in RC isolation level (#34523)
close pingcap/tidb#34447
2022-05-13 10:42:35 +08:00
bbd7541322 *: refine 'tidb_snapshot' behavior (#34573)
close pingcap/tidb#34529
2022-05-11 20:54:34 +08:00
33236ba8d7 *: track analyze memory usage separately with quota (#33054)
ref pingcap/tidb#29938, close pingcap/tidb#33065
2022-05-10 20:32:35 +08:00
2258bc54c4 txn: Add EnterNewTxn and OnStmtStart methods to TxnManager (#34263)
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
698a4ffe00 *: move config file option query-log-max-len to sysvar (#34305)
ref pingcap/tidb#33769
2022-05-04 00:46:54 +08:00
0d5ac6f3cb sysvar, config: mapping config settings to system variables. (#33279)
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00
fb342ff861 topsql: fix issue of topsql failed catch the running SQL when topsql is enabled in execution (#33861)
close pingcap/tidb#33859
2022-04-26 13:16:51 +08:00
d23a81488a *: Move stale read context to TxnManager (#33812)
close pingcap/tidb#31954, close pingcap/tidb#33014, close pingcap/tidb#33832
2022-04-25 16:52:51 +08:00
cff88d7bc3 topsql: remove redundant attach sql information (#33806)
close pingcap/tidb#33805
2022-04-08 17:02:32 +08:00
fef98f2239 domain,server,session: optimize gc safepoint advancing for internal transaction (#32726)
close pingcap/tidb#32725
2022-04-07 14:14:32 +08:00
d4d43ba0b4 txn: support read consistency read with ts checking (#32922)
close pingcap/tidb#33159
2022-03-16 20:49:52 +08:00
00e96229c1 planner: add more test cases for auto-capture and support to capture more hints (#33051) 2022-03-15 20:01:51 +08:00
9c64224c49 *: Reduce data inconsistencies (#31547)
ref pingcap/tidb#26833
2022-02-11 13:51:36 +08:00
d8fd06dc84 metrics,executor: add metrics for reading from table cache (#32171)
close pingcap/tidb#29958
2022-02-11 12:17:36 +08:00
34ce5b5e60 topsql: optimize life cycle of stmtstats (#31727)
ref pingcap/tidb#31704
2022-01-17 21:11:45 +08:00
3688609096 executor: fix prepare 'do 1' statement panic (#31142)
close pingcap/tidb#31141
2021-12-30 15:09:50 +08:00
8a83d01ac6 topsql: add sql sum execution duration information (#31143) 2021-12-30 10:53:50 +08:00
e9ab05f90f topsql: move topsql variable to topsql/state for avoid import cycle (#31134)
close pingcap/tidb#31136
2021-12-29 19:51:50 +08:00
88232307df executor: fix stmt summary nil pointer panic on the cached table (#31079)
close pingcap/tidb#31077
2021-12-29 15:31:50 +08:00
1f6d2ddfb9 *: Use TxnManager.GetTxnInfoSchema() to get the txn infoschema (#30934)
close pingcap/tidb#30933
2021-12-22 17:39:47 +08:00
529ce88c1c *: add TxnManager to manage txn in session (#30574)
* *: add TxnManager to manage txn in session

* modify

* add tests

* move failpoint content to a single file
2021-12-22 13:53:43 +08:00
fe1aaf2fd7 topsql: introduce stmtstats and sql execution count (#30277) 2021-12-21 15:43:47 +08:00
d83ee8cfda executor,util: write slow query to slow log no matter what log level (#30461) 2021-12-07 20:49:56 +08:00