Commit Graph

195 Commits

Author SHA1 Message Date
8d345cd09a *: open auto analyze and stats feedback by default (#6500) 2018-05-08 19:18:50 +08:00
702f210473 make tidb_opt_insubquery_unfold global (#6482) 2018-05-07 21:15:08 +08:00
23e8c6e12b *: add a system variable auto_analyze_ratio (#6455) 2018-05-04 10:54:30 +08:00
e215e93948 *: provide a configurable tidb_retry_limit session variable (#6369) 2018-05-03 19:52:53 +08:00
5da8ac0957 *: make session variables control TiKV layer. (#6322)
And add a system variable `tidb_backoff_lock_fast` to change the backoff base time on read lock.
2018-04-20 16:06:34 +08:00
60a9ff5f93 variable: group same kind of variables into structs. (#6297) 2018-04-17 19:49:12 +08:00
8777db2d98 session: add session variable tidb_optimizer_selectivity_level. (#6289) 2018-04-16 21:48:37 +08:00
88a6a0de38 variable: set default hash join concurrency in NewSessionVars (#6295) 2018-04-16 20:15:49 +08:00
9fbf8a6637 stats: dynamically update the average column size (#6170) 2018-04-13 16:31:43 +08:00
e2b033d1c0 *: add a tidb system variable tidb_hash_join_concurrency (#6244) 2018-04-12 20:28:19 +08:00
dd98c7050e variable: fix NewSessionVars (#6272)
Set IndexLookupJoinConcurrency to default value.
If this value is init as 0, index lookup join will hang forever.
2018-04-11 21:44:10 +08:00
582e33a0e4 *: use tidb_index_lookup_join_currency to control the number of IndexLookupJoin inner workers (#6240) 2018-04-10 10:05:00 +08:00
13a7f1943c *: fix data race in plan cache (#6234) 2018-04-09 08:24:38 +08:00
6287cfb8c2 *: modify 'session transaction isolation level' to take effect once (#6175) 2018-04-04 18:39:44 +08:00
83066fc954 executor: track memory usage for nested loop apply (#6171) 2018-04-02 13:54:12 +08:00
491f58d7d8 executor: track memory usage for merge join (#6172) 2018-03-31 17:17:23 +08:00
564e8896df executor: track memory usage of index lookup join (#6169) 2018-03-30 10:48:11 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
6f43b37572 Add admin checksum table command (#6067) 2018-03-20 20:46:43 +08:00
4886dcb1c4 executor: track the memory usage of IndexLookUpExecutor (#6009) 2018-03-20 12:55:12 +08:00
65440001d9 set explicit_defaults_for_timestamp to ON (#6068) 2018-03-15 14:40:10 +08:00
a3bf058304 *: 1. remove EnableChunk 2. implement Next in baseExecutor to return nil (#5988) 2018-03-09 17:40:11 +08:00
3e1a8ed36d executor, infoschema: return a pseudo profiling table when system var profiling is set to 1 (#5960)
try fix mysql compability
2018-03-06 18:06:03 +08:00
ad814b0d6c executor, util: employ memory Tracker to track memory usage during query execution (#5826) 2018-03-06 11:02:09 +08:00
12a1a254fc config,distsql: add config for coprocessor streaming feature (#5917) 2018-02-28 21:36:22 -06:00
d9934935ca *: set have_profiling to NO (#5907)
Fixes issue #5666
2018-02-26 15:30:50 +08:00
a687650c9f metrics,tidb: add StatementsPerTransaction and TransactionDuration (#5859) 2018-02-11 21:01:37 -06:00
8cc9e45f41 variable,printer: add a session variable to show configuration. (#5784) 2018-02-05 22:54:41 +08:00
47cbc0bfce *: remove varsutil package, make Systems a private member of SessionVars (#5544) 2018-01-25 01:43:07 -06:00
dffc8c974d executor, parser: treat tx_isolation, transaction_isolation or tx_read_only, transaction_read_only as synonyms variable (#5700) 2018-01-22 23:15:17 +08:00
6e772d3963 variable: Enlarge default distsql_scan_concurrency (#5670) 2018-01-19 13:28:50 +08:00
c5c0714cde executor, sessionctx, util: log a warning when memory usage of HashJoinExec exceed threshhold (#5658) 2018-01-18 11:14:25 +08:00
f57b8438bc table: index.addindices reuse temp buffer (#5600) 2018-01-17 05:32:30 -06:00
096190775e session: add session variable to log query string. (#5633)
Use an atomic global variable to control the switch to log query.
And the query is logged before execution.
2018-01-16 10:12:51 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
36d9b61365 *: AddIndex skip checking unique constraint when TiDB is importing data. (#5535) 2018-01-02 20:08:49 +08:00
100bc58a83 parser, variable: fix #5478, make 'set transaction read only' works. (#5483) 2017-12-25 21:36:15 +08:00
7995346d8d *: clean up and some file renaming. (#5440) 2017-12-18 23:24:25 +08:00
65b2b0d452 *: Set the batch delete/insert size by session variable (#5413)
We hardcode it to 20k. But if the row size is large. It will still break
the transaction size limitation. So we need to provide a way to set it
dynamicially.
2017-12-17 21:11:18 -06:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
713bc797bb *: clear delta info when roll back transaction (#5390) 2017-12-13 15:35:07 +08:00
714b68c568 *: improve performance of show variables (#5297) 2017-12-05 19:23:52 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
4c904639cf *: add a session variable to control max chunk size (#5233) 2017-11-28 10:41:22 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
dd2812fa55 mysql, expression: support sql_mode 'PAD_CHAR_TO_FULL_LENGTH' (#5065) 2017-11-21 13:22:29 +08:00
9048aa8afa plan: refine the use of idAllocator (#5088) 2017-11-14 11:10:03 +08:00
b7c722aab6 Support SQLMode ONLY_FULL_GROUP_BY and fix a join panic bug (#4613) 2017-11-06 10:53:29 +08:00