mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 13:17:45 +02:00
TSK-803: Fix load speed (#2728)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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[] = []
|
||||
|
||||
Reference in New Issue
Block a user