0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:dbs: Add conf items for events db column caches.

This commit is contained in:
Jason Volk 2018-09-02 20:32:34 -07:00
parent b30a637dfa
commit 6440ea3f11
2 changed files with 792 additions and 47 deletions

View file

@ -92,21 +92,68 @@ namespace ircd::m::dbs::desc
// Direct columns
//
extern conf::item<size_t> events__auth_events__cache__size;
extern conf::item<size_t> events__auth_events__cache_comp__size;
extern const database::descriptor events_auth_events;
extern conf::item<size_t> events__content__cache__size;
extern conf::item<size_t> events__content__cache_comp__size;
extern const database::descriptor events_content;
extern conf::item<size_t> events__depth__cache__size;
extern conf::item<size_t> events__depth__cache_comp__size;
extern const database::descriptor events_depth;
extern conf::item<size_t> events__event_id__cache__size;
extern conf::item<size_t> events__event_id__cache_comp__size;
extern const database::descriptor events_event_id;
extern conf::item<size_t> events__hashes__cache__size;
extern conf::item<size_t> events__hashes__cache_comp__size;
extern const database::descriptor events_hashes;
extern conf::item<size_t> events__membership__cache__size;
extern conf::item<size_t> events__membership__cache_comp__size;
extern const database::descriptor events_membership;
extern conf::item<size_t> events__origin__cache__size;
extern conf::item<size_t> events__origin__cache_comp__size;
extern const database::descriptor events_origin;
extern conf::item<size_t> events__origin_server_ts__cache__size;
extern conf::item<size_t> events__origin_server_ts__cache_comp__size;
extern const database::descriptor events_origin_server_ts;
extern conf::item<size_t> events__prev_events__cache__size;
extern conf::item<size_t> events__prev_events__cache_comp__size;
extern const database::descriptor events_prev_events;
extern conf::item<size_t> events__prev_state__cache__size;
extern conf::item<size_t> events__prev_state__cache_comp__size;
extern const database::descriptor events_prev_state;
extern conf::item<size_t> events__redacts__cache__size;
extern conf::item<size_t> events__redacts__cache_comp__size;
extern const database::descriptor events_redacts;
extern conf::item<size_t> events__room_id__cache__size;
extern conf::item<size_t> events__room_id__cache_comp__size;
extern const database::descriptor events_room_id;
extern conf::item<size_t> events__sender__cache__size;
extern conf::item<size_t> events__sender__cache_comp__size;
extern const database::descriptor events_sender;
extern conf::item<size_t> events__signatures__cache__size;
extern conf::item<size_t> events__signatures__cache_comp__size;
extern const database::descriptor events_signatures;
extern conf::item<size_t> events__state_key__cache__size;
extern conf::item<size_t> events__state_key__cache_comp__size;
extern const database::descriptor events_state_key;
extern conf::item<size_t> events__type__cache__size;
extern conf::item<size_t> events__type__cache_comp__size;
extern const database::descriptor events_type;
//
@ -114,29 +161,42 @@ namespace ircd::m::dbs::desc
//
// events index
extern conf::item<size_t> events__event_idx__cache__size;
extern conf::item<size_t> events__event_idx__cache_comp__size;
extern const database::descriptor events__event_idx;
// events blacklist
extern conf::item<size_t> events__event_bad__cache__size;
extern conf::item<size_t> events__event_bad__cache_comp__size;
extern const database::descriptor events__event_bad;
// room head mapping sequence
extern conf::item<size_t> events__room_head__cache__size;
extern const db::prefix_transform events__room_head__pfx;
extern const database::descriptor events__room_head;
// room events sequence
extern conf::item<size_t> events__room_events__cache__size;
extern conf::item<size_t> events__room_events__cache_comp__size;
extern const db::prefix_transform events__room_events__pfx;
extern const db::comparator events__room_events__cmp;
extern const database::descriptor events__room_events;
// room present joined members sequence
extern conf::item<size_t> events__room_joined__cache__size;
extern conf::item<size_t> events__room_joined__cache_comp__size;
extern const db::prefix_transform events__room_joined__pfx;
extern const database::descriptor events__room_joined;
// room present state mapping sequence
extern conf::item<size_t> events__room_state__cache__size;
extern conf::item<size_t> events__room_state__cache_comp__size;
extern const db::prefix_transform events__room_state__pfx;
extern const database::descriptor events__room_state;
// state btree node key-value store
extern conf::item<size_t> events__state_node__cache__size;
extern conf::item<size_t> events__state_node__cache_comp__size;
extern const database::descriptor events__state_node;
}

File diff suppressed because it is too large Load diff