Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topsql: introduce stmtstats and sql execution count #30277

Merged
merged 62 commits into from
Dec 21, 2021

Commits on Nov 22, 2021

  1. Init sql execution count

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    ee242e4 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Configuration menu
    Copy the full SHA
    101fd27 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2021

  1. Configuration menu
    Copy the full SHA
    f9719b7 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. Add exec-count for prepared statements; Add comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    91b2048 View commit details
    Browse the repository at this point in the history
  2. Add unit-tests

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    89f10ba View commit details
    Browse the repository at this point in the history
  3. Add todo

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    9340a27 View commit details
    Browse the repository at this point in the history
  4. Add license

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    136675a View commit details
    Browse the repository at this point in the history
  5. Rename

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    671ccf1 View commit details
    Browse the repository at this point in the history
  6. Add comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    979efa7 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Init sql execution count for tikv

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    9868bf2 View commit details
    Browse the repository at this point in the history
  2. Use exec-count as a separate package to avoid circular dependencies

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    1c95a0a View commit details
    Browse the repository at this point in the history
  3. Integrate ExecCounter and KvExecCounter

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    5a53b8e View commit details
    Browse the repository at this point in the history
  4. Add unit-tests

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    21df3ec View commit details
    Browse the repository at this point in the history
  5. Add comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    5fb0752 View commit details
    Browse the repository at this point in the history
  6. Simplify the code in distsql

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    d6919bb View commit details
    Browse the repository at this point in the history
  7. Rename

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    347480c View commit details
    Browse the repository at this point in the history
  8. Add comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    684ddf4 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Introduce stmtstats

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    7c0889f View commit details
    Browse the repository at this point in the history
  2. Fix npe; Add comments; Remove print

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    50629ef View commit details
    Browse the repository at this point in the history
  3. Remove local mod replace

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    a520036 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into exec-count

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    119a525 View commit details
    Browse the repository at this point in the history
  5. Fix ut

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    b51b394 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Configuration menu
    Copy the full SHA
    7bc8589 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. Configuration menu
    Copy the full SHA
    8fcd43b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into exec-count

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    99dad2c View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. Remove KvExecCounter pointer in session vars

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    73e2e0a View commit details
    Browse the repository at this point in the history
  2. Add plan digest for statement stats

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    a0f8143 View commit details
    Browse the repository at this point in the history
  3. Upgrade client-go

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    dfa0590 View commit details
    Browse the repository at this point in the history
  4. Fix typo

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    946ea85 View commit details
    Browse the repository at this point in the history
  5. Comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    1b46677 View commit details
    Browse the repository at this point in the history
  6. Comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    c2209e9 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Configuration menu
    Copy the full SHA
    eed9af8 View commit details
    Browse the repository at this point in the history
  2. Remove session.stmtStats

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    f66c79b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f1e427 View commit details
    Browse the repository at this point in the history
  4. Resolve pr comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    2381e11 View commit details
    Browse the repository at this point in the history
  5. Eliminate race

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    bb05c16 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2021

  1. Remove explicit ts param

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    f99a7c9 View commit details
    Browse the repository at this point in the history
  2. Add string method

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    0d74444 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into exec-count

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    98256cf View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Add integration tests for stmt stats

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    de99322 View commit details
    Browse the repository at this point in the history
  2. Add comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    816bca2 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2021

  1. Upgrade client-go

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    d1bce96 View commit details
    Browse the repository at this point in the history
  2. Add kv exec count test case

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    3bfc8d0 View commit details
    Browse the repository at this point in the history
  3. Rename

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    32c85e5 View commit details
    Browse the repository at this point in the history
  4. Remove print

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    474b6d2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a4ff9b View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Use bytes instead of string

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    fb9b379 View commit details
    Browse the repository at this point in the history
  2. Move String() to test file

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    78a30ca View commit details
    Browse the repository at this point in the history
  3. Add more UT

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    467ac79 View commit details
    Browse the repository at this point in the history
  4. Fix compile error in test

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    b8ed21b View commit details
    Browse the repository at this point in the history
  5. Simplify globalAggregator

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    90d94f5 View commit details
    Browse the repository at this point in the history
  6. Add StatementObserver

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    e9ecf63 View commit details
    Browse the repository at this point in the history
  7. Extract method

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    699cf7e View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2021

  1. Configuration menu
    Copy the full SHA
    db63338 View commit details
    Browse the repository at this point in the history
  2. Reduce boilerplate code

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    b9ed865 View commit details
    Browse the repository at this point in the history
  3. Use atomic.Bool instead of uint32

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    94803d6 View commit details
    Browse the repository at this point in the history
  4. Mark SetupAggregator & CloseAggregator as not thread-safe

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    a295cf2 View commit details
    Browse the repository at this point in the history
  5. Rename kvexeccount.go -> kv_exec_count.go

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    f069615 View commit details
    Browse the repository at this point in the history
  6. Resolve comments

    Signed-off-by: mornyx <mornyx.z@gmail.com>
    mornyx committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    f5728d6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b855763 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d6dcca9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    83dc182 View commit details
    Browse the repository at this point in the history