• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 12098
100%
master: 88%

Build:
Build:
LAST BUILD BRANCH: release/3.3
DEFAULT BRANCH: master
Ran 15 May 2018 02:13PM UTC
Jobs 1
Files 349
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
12098

push

travis-ci

Korablev77
sql: move SQL statistics to server

SQLite provides kind of statistics concerning data holding in each index
and space. It is used to help query planner build optimized plan. Such
statistics don't depend on internal index implementation (e.g. B-tree or
LSM tree) and contain information concerning tuple distribution.
This patch moves members responsible statistics from original SQLite
structs to Tarantool ones. To be more precise, now index's opts contains
statistics from _stat1 space (arrays of integers and their logarithm
approximation) and more sophisticated one from _stat4 (array of samples).
It also contains set of flags to turn on/off different optimizations
(such as skip-scan).

After ANALYZE command is executed, statistics are saved into _sql_stat1
and _sql_stat4 spaces (in order to persist them). However, it should also
be loaded into in-memory structs representing indexes. This patch
reworks original SQLite routine to load it directly to newly introduced
stat struct of index.

It is worth mentioning that during update of statistics occurs according
to 'everything or nothing' policy: firstly, it is allocated on the
region. Then, if there is enough memory for stats of ALL indexes it is
copied to the heap. Otherwise, region is truncated and no changes take
place.

Closes #3253

60783 of 75384 relevant lines covered (80.63%)

1521548.91 hits per line

Jobs
ID Job ID Ran Files Coverage
3 12098.3 (TARGET=coverage) 15 May 2018 02:13PM UTC 0
80.63
Travis Job 12098.3
Source Files on build 12098
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #12098
  • 17525ed8 on github
  • Prev Build on 2.0 (#12089)
  • Next Build on 2.0 (#12103)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc