Archivo de la categoría: mongodb

mongoDB blog

How to Install MongoDB 3.2 on CentOS 7.x and RHEL 7.x

Step:1 Configure MongoDB 3.2 yum Repository. In both Operating system RHEL7.x and CentOS 7.x yum repositories are kept in ‘/etc/yum.repos.d/’ directory.  Create the mongodb repository file with the name “mongodb-org.repo”. [root@mongodb ~]# cd /etc/yum.repos.d/ [root@mongodb yum.repos.d]# vi mongodb-org.repo name=MongoDB 3.2 Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc Step:2 Install MongoDB package using yum command. To install MongoDB… Leer más »

Easy Steps to Limit Mongodb Memory Usage

http://www.techpaste.com/2016/04/limit-mongodb-memory-usage/ Spaces are important!!! # Where and how to store data. storage: dbPath: /var/lib/mongo journal: enabled: true # engine: wiredTiger # mmapv1: wiredTiger: engineConfig: configString: cache_size=200M

Text search mongo

db.employees.find({$text: {$search: «Jean Valjean»}}, {score: {$meta: «textScore»}}).sort({score:{$meta:»textScore»}})

Full-Text Search in MongoDB

https://code.tutsplus.com/tutorials/full-text-search-in-mongodb–cms-24835   MongoDB, one of the leading NoSQL databases, is well known for its fast performance, flexible schema, scalability and great indexing capabilities. At the core of this fast performance lies MongoDB indexes, which support efficient execution of queries by avoiding full-collection scans and hence limiting the number of documents MongoDB searches. Starting from version… Leer más »

How to increase sort buffered data limit?

db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes: }) 256GB > db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes: 268435456}); { «was» : 33554432, «ok» : 1 } db.employee.find( {$text: { $search : «pedro mario gonzales lopez» } }, { score : { $meta: «textScore» } }) .sort({ score: { $meta : «textScore» } } )

converting database from mysql to mongoDb

http://www.mongovue.com  MongoVUE is an innovative MongoDB desktop application for Windows OS that gives you an elegant and highly usable GUI interface to work with MongoDB. Now there is one less worry in managing your web-scale data.     is there any easy way to change the database from mysql to mongoDB ? Method #1: export… Leer más »