Module: SQLite3::Constants::Optimize
| Relationships & Source Files | |
| Defined in: | lib/sqlite3/constants.rb |
Constant Summary
-
ANALYZE_TABLES =
# File 'lib/sqlite3/constants.rb', line 180
Run ANALYZE on tables that might benefit. On by default.
0x00002 -
CHECK_ALL_TABLES =
# File 'lib/sqlite3/constants.rb', line 189
Check the size of all tables, not just tables that have not been recently used, to see if any have grown and shrunk significantly and hence might benefit from being re-analyzed. Off by default.
0x10000 -
DEBUG =
# File 'lib/sqlite3/constants.rb', line 177
Debugging mode. Do not actually perform any optimizations but instead return one line of text for each optimization that would have been done. Off by default.
0x00001 -
DEFAULT =
# File 'lib/sqlite3/constants.rb', line 195
Useful for adding a bit to the default behavior, for example
db.optimize(Optimize::DEFAULT | Optimize::CHECK_ALL_TABLES)ANALYZE_TABLES | LIMIT_ANALYZE
-
LIMIT_ANALYZE =
# File 'lib/sqlite3/constants.rb', line 184
When running ANALYZE, set a temporary PRAGMA analysis_limit to prevent excess run-time. On by default.
0x00010