摘要:        
1、前言: mongodb部署在阿里云服务器, mongodb中collection存储了百万条记录。 需求:优化查询指定时间段内的所有数据的查询时间,结果有百万级别。 最初:313587条记录耗时:114.156 s 2、一般解决方式 百度 google后,大部分解决方式是创建复合索引,连接如下:    阅读全文
posted @ 2017-06-28 15:39
Lindsay_chh
阅读(6315)
评论(0)
推荐(1)
        
            
        
        
摘要:        
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/1、semanage command not found yum -y install policycoreutils-python2、设置mongodb开机自动启    阅读全文
posted @ 2017-06-28 15:19
Lindsay_chh
阅读(4639)
评论(0)
推荐(1)
        
            
        
        
摘要:        
1、环境:Centos 7.0 64位2、mysql版本:5.73、安装:https://dev.mysql.com/doc/refman/5.7/en/installing.html3.1、创建mysql用户和组:https://dev.mysql.com/doc/refman/5.7/en/bi    阅读全文
posted @ 2017-06-28 15:17
Lindsay_chh
阅读(3845)
评论(0)
推荐(0)
        
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号