TSK-803: Fix load speed (#2728)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-03-13 23:50:10 +07:00
committed by GitHub
parent b6980f307e
commit 9eddd84ada
11 changed files with 111 additions and 21 deletions
+2 -1
View File
@@ -166,12 +166,13 @@ export async function createClient (
}
const conn = await connect(txHandler)
const t = Date.now()
const atxes = await conn.findAll(
core.class.Tx,
{ objectSpace: core.space.Model },
{ sort: { _id: SortingOrder.Ascending } }
)
console.log('find model', atxes.length)
console.log('find model', atxes.length, Date.now() - t)
let systemTx: Tx[] = []
const userTx: Tx[] = []