Commit Graph

19 Commits

Author SHA1 Message Date
f13d605273 executor: fix cluster_slow_query time type in streaming request bug (#19938)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-11 10:55:09 +08:00
5d3cdf5d17 *: add execution retry time in slow log and slow_query and statement_summary (#19625)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 11:16:52 +08:00
253d43fb51 *: add execution retry count in slow log and slow_query (#19487) 2020-08-27 14:18:06 +08:00
c04bda6db7 *:Speed up parse slow-log when query slow_query #15371 (#19139)
* speed up the slow log query

* speed up slow log query

* change the MaxRow num

* change channel location

* correct

* fix some bug

* fix error situation

* change ctx.Done() location

* update

* Update main.go

* change func name

* fix the len(rows)=0 bug

* remove else

* update slow_query_test

* update slow_query_test.go

* update slow_query_test.go

* update slow_query_test.go

* append offset var

* fix bug

* add notes

* remove fmt

* remove notes

* remove notes

* update

* update

* version back

* update offset

* update

* use len(log)==0 to check

* update

* update offset struct

* update offset

* defer recover

* update slow_query_test

* update offset

* remove fmt.print

* check error first

* update panic situation

* update failpoint test

* update failpoint test

* update panic test

* test

* test

* update test

* update failpoint name

* test

* update slow_query.go

* check err

* Code specification

* remove pointer

* update getLineIndex func

* update setFieldValue func

* debug

* update func name

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 19:00:22 +08:00
6a7ba4aafa executor: make the format of the DB field in slow logs be compatible with MySQL (#18389) 2020-07-13 18:39:41 +08:00
ef8ad55082 executor: make the format of user and host fields in slow logs be compatible with MySQL (#18162) 2020-07-06 10:40:21 +08:00
405a5d009d sessionctx: add optimization-time and wait-TS-time into the slow log (#17869) 2020-06-10 10:41:50 +08:00
0ec197fae0 sessionctx: add some information about the rewriting phase into the slow log (#17569) 2020-06-09 13:49:42 +08:00
55d9d6ca1e sessionctx,infoschema,executor,util: Show disk usage of a query in slow query and statement summary (#17132) 2020-05-26 22:03:40 +08:00
f5706c9099 executor: fix slow_query bug when query with time equal condition (#17225) 2020-05-15 18:28:53 +08:00
22f0c7f6c1 executor: fix slow_query bug when query with time equal condition and in different time zone (#17082) 2020-05-13 14:34:01 +08:00
cfec13772b sessionctx: record if a query hits plan cache in slow log (#17088) 2020-05-12 15:49:05 +08:00
3a07cf7fcc executer: add Cop_time in slow log (#16873) 2020-04-28 15:08:09 +08:00
5e4a694897 executor: fix slow_query bug when query with time equal condit… (#16768) 2020-04-24 19:13:13 +08:00
5bdc0eaf50 executor: fix slow_query bug when query with time equal condition (#16445) 2020-04-20 10:52:03 +08:00
da9ed101b0 executor: asynchronous parsing slow log (#15363) 2020-03-16 12:40:24 +08:00
d329fad8c4 store: fix timing of prewrite binlog in slow log (#15273) 2020-03-11 10:32:32 +08:00
b06e3e85b2 executor: make SLOW_QUERY support query slow log at any time (#14840) 2020-02-20 19:46:05 +08:00
db65a02402 *: support next chunk for slow_query (#14754) 2020-02-18 18:54:05 +08:00