Giter Site home page Giter Site logo

Comments (4)

xpchild avatar xpchild commented on April 27, 2024

TABLE_STATISTICS表在information_schema数据库下。

from alisql.

lslxdx avatar lslxdx commented on April 27, 2024

information_schema数据库下确实存在TABLE_STATISTICS表。

我以为select * from TABLE_STATISTICS;是AliSQL特有的,是MySQL/MariaDB所不支持的特性……
但是我发现在MariaDB里也支持:

➜  ~ mysql -uroot
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 10.1.21-MariaDB Homebrew

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use information_schema;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [information_schema]> select * from TABLE_STATISTICS;
Empty set (0.00 sec)

MariaDB [information_schema]> select version();
+-----------------+
| version()       |
+-----------------+
| 10.1.21-MariaDB |
+-----------------+
1 row in set (0.00 sec)

是不是我对AliSQL的table/index statistics特性的打开方式错了,应该怎么做?

from alisql.

fungo avatar fungo commented on April 27, 2024

请参考release note: table/index statistics,有2个参数开关需要打开 rds_tablestat rds_indexstat

from alisql.

lslxdx avatar lslxdx commented on April 27, 2024

是的 确实有2个参数开关rds_tablestatrds_indexstat

P.S 我发现10.1.21也支持table/index statistics了 :-)

MariaDB [(none)]> select version();
+-----------------+
| version()       |
+-----------------+
| 10.1.21-MariaDB |
+-----------------+

MariaDB [(none)]> use information_schema;

MariaDB [information_schema]> SELECT * FROM TABLE_STATISTICS;
Empty set (0.00 sec)

MariaDB [information_schema]> SELECT * FROM INDEX_STATISTICS;
Empty set (0.00 sec)

from alisql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.