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.
在用 MongoDB 玩过 MapReduce 之后,
文件看起来像:
{_id: { somecola : 123, somecolb : 456 }, value:10 }
我想要这种格式:
{ _id : somerandomcode, somecola : 123, somecolb : 456, value :10 }
新建一个集合,foreach+insert 可以,但是太慢了,怎么快速做?
谢谢
I am using this websocket programming from here.