0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

modules/m_room: Add no-cache for iterations.

This commit is contained in:
Jason Volk 2018-05-31 09:31:22 -07:00
parent bb779b03e9
commit 7a93d798d8

View file

@ -31,7 +31,8 @@ is_complete(const m::room &room)
static const m::event::fetch::opts fopts
{
m::event::keys::include{"depth"}
m::event::keys::include{"depth"},
{ db::get::NO_CACHE }
};
m::room::messages it
@ -70,9 +71,14 @@ state__rebuild_present(const m::room &room)
state.get("m.room.create")
};
static const m::event::fetch::opts fopts
{
{ db::get::NO_CACHE }
};
m::room::messages it
{
room, create_id
room, create_id, &fopts
};
if(!it)
@ -119,9 +125,14 @@ state__rebuild_history(const m::room &room)
state.get("m.room.create")
};
static const m::event::fetch::opts fopts
{
{ db::get::NO_CACHE }
};
m::room::messages it
{
room, create_id
room, create_id, &fopts
};
if(!it)
@ -192,9 +203,14 @@ head__rebuild(const m::room &room)
state.get("m.room.create")
};
static const m::event::fetch::opts fopts
{
{ db::get::NO_CACHE }
};
m::room::messages it
{
room, create_id
room, create_id, &fopts
};
if(!it)
@ -316,15 +332,11 @@ dagree_histogram(const m::room &room,
{
static const m::event::fetch::opts fopts
{
{ db::get::NO_CACHE },
m::event::keys::include
{
"event_id",
"prev_events",
},
db::gopts
{
db::get::NO_CACHE
}
};