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:
parent
6b915da4ab
commit
325145ab29
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue