RT,我写了一个爬虫抓取一些json数据然后写入mongodb存储,前面写了三万多条数据都正常(我检查过数据库里面,写入成功了),但是突然那个服务端的cmd窗口就闪退了。我线程设置的是10,电脑配置i5 4210,内存8G,是不是配置低了,还是我这种存储方式有问题,需要用到连接池?
ringa_lee2017-05-02 09:25:35
If you ask more effectively, you can provide the version information of MongoDB and pymongo and the log information of MongoDB.
If your mongodb and python programs are running in a CMD window, you can try running these two things in two different CMDs to see if you can avoid crashes.