mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 23:14:13 +01:00
ircd:Ⓜ️:dbs: Add conf items for less aggressive compact trig on large columns.
This commit is contained in:
parent
c76aec69a9
commit
03262e09a9
4 changed files with 18 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace ircd::m::dbs::desc
|
|||
extern conf::item<size_t> content__cache__size;
|
||||
extern conf::item<size_t> content__cache_comp__size;
|
||||
extern conf::item<size_t> content__file__size__max;
|
||||
extern conf::item<size_t> content__compaction_trigger;
|
||||
extern const db::descriptor content;
|
||||
|
||||
extern conf::item<std::string> depth__comp;
|
||||
|
|
|
@ -28,5 +28,6 @@ namespace ircd::m::dbs::desc
|
|||
extern conf::item<size_t> event_json__cache_comp__size;
|
||||
extern conf::item<size_t> event_json__bloom__bits;
|
||||
extern conf::item<size_t> event_json__file__size__max;
|
||||
extern conf::item<size_t> event_json__compaction_trigger;
|
||||
extern const db::descriptor event_json;
|
||||
}
|
||||
|
|
|
@ -257,6 +257,13 @@ ircd::m::dbs::desc::content__file__size__max
|
|||
{ "default", long(256_MiB) },
|
||||
};
|
||||
|
||||
decltype(ircd::m::dbs::desc::content__compaction_trigger)
|
||||
ircd::m::dbs::desc::content__compaction_trigger
|
||||
{
|
||||
{ "name", "ircd.m.dbs.content.compaction.trigger" },
|
||||
{ "default", 4 },
|
||||
};
|
||||
|
||||
const ircd::db::descriptor
|
||||
ircd::m::dbs::desc::content
|
||||
{
|
||||
|
@ -288,6 +295,7 @@ ircd::m::dbs::desc::content
|
|||
.compression = string_view{content__comp},
|
||||
.compaction_pri = "Universal"s,
|
||||
.target_file_size = { size_t(content__file__size__max), 1L, },
|
||||
.compaction_trigger = size_t(content__compaction_trigger),
|
||||
};
|
||||
|
||||
//
|
||||
|
|
|
@ -72,6 +72,13 @@ ircd::m::dbs::desc::event_json__file__size__max
|
|||
{ "default", long(512_MiB) },
|
||||
};
|
||||
|
||||
decltype(ircd::m::dbs::desc::event_json__compaction_trigger)
|
||||
ircd::m::dbs::desc::event_json__compaction_trigger
|
||||
{
|
||||
{ "name", "ircd.m.dbs._event_json.compaction.trigger" },
|
||||
{ "default", 8 },
|
||||
};
|
||||
|
||||
const ircd::db::descriptor
|
||||
ircd::m::dbs::desc::event_json
|
||||
{
|
||||
|
@ -96,6 +103,7 @@ ircd::m::dbs::desc::event_json
|
|||
.compression = string_view{event_json__comp},
|
||||
.compaction_pri = "Universal"s,
|
||||
.target_file_size = { size_t(event_json__file__size__max), 1L, },
|
||||
.compaction_trigger = size_t(event_json__compaction_trigger),
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue