0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 23:08:20 +02:00

ircd:Ⓜ️:event::fetch: Optimize row construction when json query used.

This commit is contained in:
Jason Volk 2019-01-24 13:21:42 -08:00
parent 91f741ec57
commit 736a6a1f27

View file

@ -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
}