当前位置:Gxlcms > 数据库问题 > 单实例,当MongoDB单表数据文件太大导致写入速度变慢

单实例,当MongoDB单表数据文件太大导致写入速度变慢

时间:2021-07-01 10:21:17 帮助过:232人阅读

单实例,当MongoDB单表数据文件太大导致写入速度变慢

解决办法(待测试):

文件拆分成小文件。主要参数有

Storage options:
--storageEngine arg what storage engine to use - defaults
to wiredTiger if no data files present

--directoryperdb each database will be stored in a
separate directory

--quota limits each database to a certain
number of files (8 default)
--quotaFiles arg number of files allowed per db, implies
--quota

单实例,当MongoDB单表数据文件太大导致写入速度变慢

标签:res   单实例   数据文件   option   cto   dir   实例   base   文件   

人气教程排行