0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-13 21:10:32 +01:00

ircd:Ⓜ️:events::source: Disable readahead for descending access pattern.

This commit is contained in:
Jason Volk 2020-10-11 17:19:57 -07:00
parent 6b915da4ab
commit 325145ab29

View file

@ -320,6 +320,7 @@ ircd::m::events::source::for_each(const range &range,
db::get::NO_CHECKSUM
};
gopts.readahead = size_t(readahead);
gopts.readahead &= boolmask<size_t>(ascending);
auto it
{
@ -385,8 +386,8 @@ ircd::m::events::content::for_each(const closure &closure)
db::get::NO_CACHE,
db::get::NO_CHECKSUM
};
gopts.readahead = size_t(readahead);
auto it(column.begin(gopts));
for(; it; ++it)
{