sql: refactor usages of table's tuple count
Count of tuples containing in given space can be calculated as a number of tuples in primary index. However, if table represents temporary object such as result set of SELECT or VIEW, tuple count can't be precisely determined. In this case, default approximation is used: 1 million tuples. Part of #3253
Showing
- src/box/sql/analyze.c 14 additions, 1 deletionsrc/box/sql/analyze.c
- src/box/sql/build.c 1 addition, 3 deletionssrc/box/sql/build.c
- src/box/sql/pragma.c 1 addition, 1 deletionsrc/box/sql/pragma.c
- src/box/sql/select.c 10 additions, 8 deletionssrc/box/sql/select.c
- src/box/sql/sqliteInt.h 21 additions, 2 deletionssrc/box/sql/sqliteInt.h
- src/box/sql/where.c 16 additions, 2 deletionssrc/box/sql/where.c
Loading
Please register or sign in to comment