From 337810d7e00bc82b62ba649f1f8fd506d22bfd81 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 21 Oct 2018 00:19:42 -0700 Subject: [PATCH] ircd::m::dbs: Add meta block size confs for select direct columns; tweak block sizes. --- include/ircd/m/dbs.h | 2 ++ ircd/m/dbs.cc | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/include/ircd/m/dbs.h b/include/ircd/m/dbs.h index f774dd750..55b13df88 100644 --- a/include/ircd/m/dbs.h +++ b/include/ircd/m/dbs.h @@ -107,6 +107,7 @@ namespace ircd::m::dbs::desc extern const db::descriptor events_content; extern conf::item events__depth__block__size; + extern conf::item events__depth__meta_block__size; extern conf::item events__depth__cache__size; extern conf::item events__depth__cache_comp__size; extern const db::descriptor events_depth; @@ -132,6 +133,7 @@ namespace ircd::m::dbs::desc extern const db::descriptor events_origin; extern conf::item events__origin_server_ts__block__size; + extern conf::item events__origin_server_ts__meta_block__size; extern conf::item events__origin_server_ts__cache__size; extern conf::item events__origin_server_ts__cache_comp__size; extern const db::descriptor events_origin_server_ts; diff --git a/ircd/m/dbs.cc b/ircd/m/dbs.cc index 07973d28d..1b095a386 100644 --- a/ircd/m/dbs.cc +++ b/ircd/m/dbs.cc @@ -2263,6 +2263,13 @@ ircd::m::dbs::desc::events__origin_server_ts__block__size { "default", 256L }, }; +decltype(ircd::m::dbs::desc::events__origin_server_ts__meta_block__size) +ircd::m::dbs::desc::events__origin_server_ts__meta_block__size +{ + { "name", "ircd.m.dbs.events.origin_server_ts.meta_block.size" }, + { "default", 256L }, +}; + decltype(ircd::m::dbs::desc::events__origin_server_ts__cache__size) ircd::m::dbs::desc::events__origin_server_ts__cache__size { @@ -2349,7 +2356,7 @@ decltype(ircd::m::dbs::desc::events__signatures__block__size) ircd::m::dbs::desc::events__signatures__block__size { { "name", "ircd.m.dbs.events.signatures.block.size" }, - { "default", 512L }, + { "default", 1024L }, }; decltype(ircd::m::dbs::desc::events__signatures__cache__size) @@ -2432,7 +2439,7 @@ decltype(ircd::m::dbs::desc::events__auth_events__block__size) ircd::m::dbs::desc::events__auth_events__block__size { { "name", "ircd.m.dbs.events.auth_events.block.size" }, - { "default", 512L }, + { "default", 1024L }, }; decltype(ircd::m::dbs::desc::events__auth_events__cache__size) @@ -2517,6 +2524,13 @@ ircd::m::dbs::desc::events__depth__block__size { "default", 256L }, }; +decltype(ircd::m::dbs::desc::events__depth__meta_block__size) +ircd::m::dbs::desc::events__depth__meta_block__size +{ + { "name", "ircd.m.dbs.events.depth.meta_block.size" }, + { "default", 256L }, +}; + decltype(ircd::m::dbs::desc::events__depth__cache__size) ircd::m::dbs::desc::events__depth__cache__size { @@ -2760,7 +2774,7 @@ decltype(ircd::m::dbs::desc::events__prev_events__block__size) ircd::m::dbs::desc::events__prev_events__block__size { { "name", "ircd.m.dbs.events.prev_events.block.size" }, - { "default", 512L }, + { "default", 1024L }, }; decltype(ircd::m::dbs::desc::events__prev_events__cache__size)