|
|
using | RETURN_TYPE = string |
|
|
static constexpr const char * | Name = "max_temp_directory_size" |
| static constexpr const char * | Description |
|
static constexpr const char * | InputType = "VARCHAR" |
◆ SetGlobal()
302631 {
302632 if (input == "90% of available disk space") {
302633 ResetGlobal(db, config);
302634 return;
302635 }
302636 auto maximum_swap_space = DBConfig::ParseMemoryLimit(input.ToString());
302638
302639
302640 maximum_swap_space--;
302641 }
302642 if (!db) {
302644 return;
302645 }
302646 auto &buffer_manager = BufferManager::GetBufferManager(*db);
302647 buffer_manager.SetSwapLimit(maximum_swap_space);
302649}
idx_t maximum_swap_space
The maximum size of the 'temp_directory' folder when set (in bytes). Default: 90% of available disk s...
Definition duckdb.hpp:40002
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117
◆ ResetGlobal()
302651 {
302653 if (!db) {
302654 return;
302655 }
302656 auto &buffer_manager = BufferManager::GetBufferManager(*db);
302657 buffer_manager.SetSwapLimit();
302658}
◆ GetSetting()
302660 {
302661 auto &config = DBConfig::GetConfig(context);
302663
302665 }
302666 auto &buffer_manager = BufferManager::GetBufferManager(context);
302667
302668 auto max_swap = buffer_manager.GetMaxSwap();
302669 if (max_swap.IsValid()) {
302671 } else {
302672
302673 return Value("90% of available disk space");
302674 }
302675}
static DUCKDB_API string BytesToHumanReadableString(idx_t bytes, idx_t multiplier=1024)
Return a string that formats the give number of bytes.
Definition duckdb.cpp:109517
◆ Description
| const char* duckdb::MaxTempDirectorySizeSetting::Description |
|
staticconstexpr |
Initial value:=
"The maximum amount of data stored inside the 'temp_directory' (when set) (e.g. 1GB)"
The documentation for this struct was generated from the following file: