//400毫秒查询
await dbj.collection('opendb-city-china')
.get({
getTreePath: {
startWith: code=='${result.code}'
}
})
//30毫秒查询
await dbj.collection('opendb-city-china')
.get({
getTreePath: {
limitLevel: 5,
startWith: code=='${result.code}'
}
})
netohall (作者)
code导入的时候自带索引的。limitLevel这个应该跟索引没关系吧
2025-02-18 13:21