未验证 提交 965d9c5d 编写于 作者: W wanganxp 提交者: GitHub

Update cf-database.md

上级 cc0a8875
......@@ -289,8 +289,8 @@ let res = await db.collection('goods').where({
| 字段 | 类型 | 必填 | 说明 |
| --------- | ------- | ---- | ------------------------ |
| total | Number | 否 | 计数结果 |
**注意:数据量很大的情况下,count性能会很差,尽量使用其他方式替代**
**注意:数据量很大的情况下,count性能会很差,尽量使用其他方式替代,比如新增一个字段专门用来存放总数**
### 设置记录数量
......@@ -327,8 +327,8 @@ collection.skip(value)
```js
let res = await collection.skip(4).get()
```
**注意:数据量很大的情况下,skip性能会很差,尽量使用其他方式替代**
**注意:数据量很大的情况下,skip性能会很差,尽量使用其他方式替代**
### 对结果排序
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册