Skip to content

hgottipati/mongoDB_Access

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

| dataginger | Hareesh - Mognodb - get count of documents for each collection

readme.md

  • This code takes in the list of databases in a MongoDB store and runs any specific queries across all the collections within each of those databases.
  • Provide the path to the database files
  • Follow the sample file (db_list.js) formatting for specifying databases.
  • Write your query that you want to run across all the collections. Default is to print the count of all documents for each collection
  • Execute the script as below

    mongo -u user_ -p P@$$word mongo_hostname.domain.com/db --eval " var sleepBetweenBatches=1000" main.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published