Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 FlexiDB 服务器,当我使用下面的命令插入 1000 行时,它需要一些时间:
$.collection('collection_name').insert(row);
如何加速?
您可以使用命令 insert_bulk,创建一个数组来保存所有对象,然后使用命令 insert_bulk 一次插入所有对象。
$.collection('collection_name').insert_bulk(rows);