Antarctic Nest of Icephoenix

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About

Monthly Archives: September 2011

MongoDB distinct count

Posted on September 15, 2011 by admin
Reply

List of disctinct values for a FIELD in COLLECTION:

db.COLLECTION.distinct("FIELDNAME", {})

Count of the same:
db.COLLECTION.distinct("FIELDNAME", {}).length

Posted in 4QuickLookUp | Tagged mongodb | Leave a reply

Archives

  • July 2012
  • June 2012
  • May 2012
  • November 2011
  • September 2011
  • June 2011
  • April 2011
  • March 2011
  • February 2011
  • December 2010
  • November 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2009
  • March 2009
  • October 2008
  • September 2008
  • July 2008
  • May 2008
  • April 2008
  • March 2008
  • November 2007

Recent Comments

  • http://www.evb-art.nl/userinfo.php?uid=12801 on ActionScript urldecode/urlencode
  • www.morazaylandaeta.es on Installing Mercurial 1.5, 1.6 or 1.7 on Ubuntu Lucid Lynx 10.04
  • good advice on Installing Mercurial 1.5, 1.6 or 1.7 on Ubuntu Lucid Lynx 10.04
  • Lurg on WordPress shortcode for ShareThis buttons
  • Marc on WordPress shortcode for ShareThis buttons
Proudly powered by WordPress