提交 2c0eabff 编写于 作者: 雪洛's avatar 雪洛

docs: uniCloud db-performance

上级 c5161ba6
......@@ -28,8 +28,6 @@ const dbCmd = db.command
module.exports = async function(event,context) {
const {
lastId,
orderField,
orderDirection,
pageSize
} = event
if(pageSize > 100){
......@@ -38,7 +36,6 @@ module.exports = async function(event,context) {
const res = await db.collection('book').where({
_id: dbCmd.gt(lastId)
})
.orderBy(orderField,orderDirection)
.limit(pageSize)
.get()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册