Commit Graph

158 Commits

Author SHA1 Message Date
359df6ecc2 variable, ddl: add session variable 'tidb_ddl_reorg_priority' to set operation priority of ddl reorg (#7116) 2018-08-08 17:16:05 +08:00
a5af7a0e1f *: remove variable 'tidb_import_data' and rename SessionVars.ImportingData to LightningMode (#7262) 2018-08-03 10:00:03 +08:00
f4f1692fd1 *: remove FromID from expression.Column (#7157) 2018-07-30 11:06:02 +08:00
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00
437933d449 sessionctx, executor: Add correctness check when set system variables (#7117) 2018-07-24 18:49:15 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
63c4562c27 *: remove non-prepared plan cache (#7040)
* *: remove non-prepared plan cache

non-prepared plan cache is not usable if we can only do full string match.
And further development doesn't worth the effort.
2018-07-13 18:15:05 +08:00
e837e4b81c *: add a session variable for table partition, tiny update (#6913) 2018-06-28 12:50:01 +07:00
6851878b9b *: add session var 'tidb_ddl_reorg_worker_cnt' to control ddl reorg workers count (#6441)
* *: add session var 'tidb_ddl_reorg_worker_cnt' to control ddl reorg workers count
2018-06-27 22:36:18 +08:00
0ab0b50f25 stats: refine the pseudo condition for stats (#6565) 2018-06-27 17:05:37 +08:00
0fbb980f9b stats: refine stats delta update (#6808) 2018-06-26 13:51:23 +08:00
8bec188b6a session: add a global/session variable 'tidb_disable_txn_auto_retry' (#6872) 2018-06-21 17:26:14 +08:00
3d7528cbb3 *: add tidb_hashagg_partial/final_concurrency (#6831) 2018-06-14 10:17:08 +08:00
0ab1b228c0 config, variable: add memory quota config for a query (#6788) 2018-06-12 13:08:28 +08:00
39a8d0eb7a executor: support parallel projection (#6323) 2018-06-07 22:50:54 +08:00
6f655593b5 sessionctx: make tidb_build_stats_concurrency global (#6558) 2018-05-18 18:45:47 +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
4886dcb1c4 executor: track the memory usage of IndexLookUpExecutor (#6009) 2018-03-20 12:55:12 +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
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
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
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
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
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