mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
ircd:Ⓜ️:event::fetch: Optimize row construction when json query used.
This commit is contained in:
parent
91f741ec57
commit
736a6a1f27
1 changed files with 6 additions and 2 deletions
|
@ -1451,7 +1451,9 @@ ircd::m::event::fetch::fetch(const event::idx &event_idx,
|
|||
event_idx && !_json.valid(key(&event_idx))?
|
||||
key(&event_idx):
|
||||
string_view{},
|
||||
event::keys{opts.keys},
|
||||
event_idx && !_json.valid(key(&event_idx))?
|
||||
event::keys{opts.keys}:
|
||||
event::keys{event::keys::include{}},
|
||||
cell,
|
||||
opts.gopts
|
||||
}
|
||||
|
@ -1477,7 +1479,9 @@ ircd::m::event::fetch::fetch(const opts &opts)
|
|||
{
|
||||
*dbs::events,
|
||||
string_view{},
|
||||
event::keys{opts.keys},
|
||||
!should_seek_json(opts)?
|
||||
event::keys{opts.keys}:
|
||||
event::keys{event::keys::include{}},
|
||||
cell,
|
||||
opts.gopts
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue