Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12951

getPlanCache() is not listed in help()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.6.0-rc2
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Shell
    • Labels:
    • Fully Compatible
    • ALL
    • Hide

      > db.sbtest12.help()
      DBCollection help
      db.sbtest12.find().help() - show DBCursor help
      db.sbtest12.count()
      db.sbtest12.copyTo(newColl) - duplicates collection by copying all documents to newColl; no indexes are copied.
      db.sbtest12.convertToCapped(maxBytes) - calls {convertToCapped:'sbtest12', size:maxBytes}} command
      db.sbtest12.dataSize()
      db.sbtest12.distinct( key ) - e.g. db.sbtest12.distinct( 'x' )
      db.sbtest12.drop() drop the collection
      db.sbtest12.dropIndex(index) - e.g. db.sbtest12.dropIndex( "indexName" ) or db.sbtest12.dropIndex(

      { "indexKey" : 1 }

      )
      db.sbtest12.dropIndexes()
      db.sbtest12.ensureIndex(keypattern[,options]) - options is an object with these possible fields: name, unique, dropDups
      db.sbtest12.reIndex()
      db.sbtest12.find([query],[fields]) - query is an optional query filter. fields is optional set of fields to return.
      e.g. db.sbtest12.find(

      {x:77}

      ,

      {name:1, x:1}

      )
      db.sbtest12.find(...).count()
      db.sbtest12.find(...).limit
      db.sbtest12.find(...).skip
      db.sbtest12.find(...).sort(...)
      db.sbtest12.findOne([query])
      db.sbtest12.findAndModify( { update : ... , remove : bool [, query: {}, sort: {}, 'new': false] } )
      db.sbtest12.getDB() get DB object associated with collection
      db.sbtest12.getIndexes()
      db.sbtest12.group(

      { key : ..., initial: ..., reduce : ...[, cond: ...] }

      )
      db.sbtest12.insert(obj)
      db.sbtest12.mapReduce( mapFunction , reduceFunction , <optional params> )
      db.sbtest12.aggregate( [pipeline], <optional params> ) - performs an aggregation on a collection; returns a cursor
      db.sbtest12.remove(query)
      db.sbtest12.renameCollection( newName , <dropTarget> ) renames the collection.
      db.sbtest12.runCommand( name , <options> ) runs a db command with the given name where the first param is the collection name
      db.sbtest12.save(obj)
      db.sbtest12.stats()
      db.sbtest12.storageSize() - includes free space allocated to this collection
      db.sbtest12.totalIndexSize() - size in bytes of all the indexes
      db.sbtest12.totalSize() - storage allocated for all data and indexes
      db.sbtest12.update(query, object[, upsert_bool, multi_bool]) - instead of two flags, you can pass an object with fields: upsert, multi
      db.sbtest12.validate( <full> ) - SLOW
      db.sbtest12.getShardVersion() - only for use with sharding
      db.sbtest12.getShardDistribution() - prints statistics about data distribution in the cluster
      db.sbtest12.getSplitKeysForChunks( <maxChunkSize> ) - calculates split points over all chunks and returns splitter function
      db.sbtest12.getWriteConcern() - returns the write concern used for any operations on this collection, inherited from server/db if set
      db.sbtest12.setWriteConcern( <write concern doc> ) - sets the write concern for writes to the collection
      db.sbtest12.unsetWriteConcern( <write concern doc> ) - unsets the write concern for writes to the collection

      Show
      > db.sbtest12.help() DBCollection help db.sbtest12.find().help() - show DBCursor help db.sbtest12.count() db.sbtest12.copyTo(newColl) - duplicates collection by copying all documents to newColl; no indexes are copied. db.sbtest12.convertToCapped(maxBytes) - calls {convertToCapped:'sbtest12', size:maxBytes}} command db.sbtest12.dataSize() db.sbtest12.distinct( key ) - e.g. db.sbtest12.distinct( 'x' ) db.sbtest12.drop() drop the collection db.sbtest12.dropIndex(index) - e.g. db.sbtest12.dropIndex( "indexName" ) or db.sbtest12.dropIndex( { "indexKey" : 1 } ) db.sbtest12.dropIndexes() db.sbtest12.ensureIndex(keypattern [,options] ) - options is an object with these possible fields: name, unique, dropDups db.sbtest12.reIndex() db.sbtest12.find( [query] , [fields] ) - query is an optional query filter. fields is optional set of fields to return. e.g. db.sbtest12.find( {x:77} , {name:1, x:1} ) db.sbtest12.find(...).count() db.sbtest12.find(...).limit db.sbtest12.find(...).skip db.sbtest12.find(...).sort(...) db.sbtest12.findOne( [query] ) db.sbtest12.findAndModify( { update : ... , remove : bool [, query: {}, sort: {}, 'new': false] } ) db.sbtest12.getDB() get DB object associated with collection db.sbtest12.getIndexes() db.sbtest12.group( { key : ..., initial: ..., reduce : ...[, cond: ...] } ) db.sbtest12.insert(obj) db.sbtest12.mapReduce( mapFunction , reduceFunction , <optional params> ) db.sbtest12.aggregate( [pipeline] , <optional params> ) - performs an aggregation on a collection; returns a cursor db.sbtest12.remove(query) db.sbtest12.renameCollection( newName , <dropTarget> ) renames the collection. db.sbtest12.runCommand( name , <options> ) runs a db command with the given name where the first param is the collection name db.sbtest12.save(obj) db.sbtest12.stats() db.sbtest12.storageSize() - includes free space allocated to this collection db.sbtest12.totalIndexSize() - size in bytes of all the indexes db.sbtest12.totalSize() - storage allocated for all data and indexes db.sbtest12.update(query, object [, upsert_bool, multi_bool] ) - instead of two flags, you can pass an object with fields: upsert, multi db.sbtest12.validate( <full> ) - SLOW db.sbtest12.getShardVersion() - only for use with sharding db.sbtest12.getShardDistribution() - prints statistics about data distribution in the cluster db.sbtest12.getSplitKeysForChunks( <maxChunkSize> ) - calculates split points over all chunks and returns splitter function db.sbtest12.getWriteConcern() - returns the write concern used for any operations on this collection, inherited from server/db if set db.sbtest12.setWriteConcern( <write concern doc> ) - sets the write concern for writes to the collection db.sbtest12.unsetWriteConcern( <write concern doc> ) - unsets the write concern for writes to the collection

      Problem:
      The help for a collection in the shell does not list getPlanCache()

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: