mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::db: Column options package; meta column block sizes tweak.
This commit is contained in:
parent
e24fb3237c
commit
bd6f46f488
2 changed files with 11 additions and 7 deletions
|
@ -1428,9 +1428,12 @@ ircd::db::database::column::column(database *const &d,
|
||||||
//
|
//
|
||||||
|
|
||||||
// Block based table index type.
|
// Block based table index type.
|
||||||
|
table_opts.format_version = 3; // RocksDB >= 5.15 compat only; otherwise use 2.
|
||||||
table_opts.index_type = rocksdb::BlockBasedTableOptions::kTwoLevelIndexSearch;
|
table_opts.index_type = rocksdb::BlockBasedTableOptions::kTwoLevelIndexSearch;
|
||||||
table_opts.enable_index_compression = false;
|
|
||||||
table_opts.partition_filters = true;
|
table_opts.partition_filters = true;
|
||||||
|
table_opts.use_delta_encoding = true;
|
||||||
|
table_opts.enable_index_compression = false;
|
||||||
|
table_opts.read_amp_bytes_per_bit = 4;
|
||||||
|
|
||||||
// Specify that index blocks should use the cache. If not, they will be
|
// Specify that index blocks should use the cache. If not, they will be
|
||||||
// pre-read into RAM by rocksdb internally. Because of the above
|
// pre-read into RAM by rocksdb internally. Because of the above
|
||||||
|
@ -1446,6 +1449,7 @@ ircd::db::database::column::column(database *const &d,
|
||||||
// Setup the block size
|
// Setup the block size
|
||||||
table_opts.block_size = this->descriptor.block_size;
|
table_opts.block_size = this->descriptor.block_size;
|
||||||
table_opts.metadata_block_size = this->descriptor.meta_block_size;
|
table_opts.metadata_block_size = this->descriptor.meta_block_size;
|
||||||
|
table_opts.block_size_deviation = 5;
|
||||||
|
|
||||||
// Setup the cache for assets.
|
// Setup the cache for assets.
|
||||||
const auto &cache_size(this->descriptor.cache_size);
|
const auto &cache_size(this->descriptor.cache_size);
|
||||||
|
|
|
@ -584,7 +584,7 @@ decltype(ircd::m::dbs::desc::events__event_idx__meta_block__size)
|
||||||
ircd::m::dbs::desc::events__event_idx__meta_block__size
|
ircd::m::dbs::desc::events__event_idx__meta_block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._event_idx.meta_block.size" },
|
{ "name", "ircd.m.dbs.events._event_idx.meta_block.size" },
|
||||||
{ "default", 2048L },
|
{ "default", 4096L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__event_idx__cache__size)
|
decltype(ircd::m::dbs::desc::events__event_idx__cache__size)
|
||||||
|
@ -886,7 +886,7 @@ decltype(ircd::m::dbs::desc::events__room_events__meta_block__size)
|
||||||
ircd::m::dbs::desc::events__room_events__meta_block__size
|
ircd::m::dbs::desc::events__room_events__meta_block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._room_events.meta_block.size" },
|
{ "name", "ircd.m.dbs.events._room_events.meta_block.size" },
|
||||||
{ "default", 4096L },
|
{ "default", 16384L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__room_events__cache__size)
|
decltype(ircd::m::dbs::desc::events__room_events__cache__size)
|
||||||
|
@ -1159,7 +1159,7 @@ decltype(ircd::m::dbs::desc::events__room_joined__meta_block__size)
|
||||||
ircd::m::dbs::desc::events__room_joined__meta_block__size
|
ircd::m::dbs::desc::events__room_joined__meta_block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._room_joined.meta_block.size" },
|
{ "name", "ircd.m.dbs.events._room_joined.meta_block.size" },
|
||||||
{ "default", 4096L },
|
{ "default", 8192L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__room_joined__cache__size)
|
decltype(ircd::m::dbs::desc::events__room_joined__cache__size)
|
||||||
|
@ -1316,7 +1316,7 @@ decltype(ircd::m::dbs::desc::events__room_state__meta_block__size)
|
||||||
ircd::m::dbs::desc::events__room_state__meta_block__size
|
ircd::m::dbs::desc::events__room_state__meta_block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._room_state.meta_block.size" },
|
{ "name", "ircd.m.dbs.events._room_state.meta_block.size" },
|
||||||
{ "default", 4096L },
|
{ "default", 8192L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__room_state__cache__size)
|
decltype(ircd::m::dbs::desc::events__room_state__cache__size)
|
||||||
|
@ -1464,14 +1464,14 @@ decltype(ircd::m::dbs::desc::events__state_node__block__size)
|
||||||
ircd::m::dbs::desc::events__state_node__block__size
|
ircd::m::dbs::desc::events__state_node__block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._state_node.block.size" },
|
{ "name", "ircd.m.dbs.events._state_node.block.size" },
|
||||||
{ "default", 512L },
|
{ "default", 1024L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__state_node__meta_block__size)
|
decltype(ircd::m::dbs::desc::events__state_node__meta_block__size)
|
||||||
ircd::m::dbs::desc::events__state_node__meta_block__size
|
ircd::m::dbs::desc::events__state_node__meta_block__size
|
||||||
{
|
{
|
||||||
{ "name", "ircd.m.dbs.events._state_node.meta_block.size" },
|
{ "name", "ircd.m.dbs.events._state_node.meta_block.size" },
|
||||||
{ "default", 512L },
|
{ "default", 4096L },
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::m::dbs::desc::events__state_node__cache__size)
|
decltype(ircd::m::dbs::desc::events__state_node__cache__size)
|
||||||
|
|
Loading…
Reference in a new issue