note 108726 rejected from mongocollection.ensureindex by danbrown

From: Date: Mon, 21 May 2012 16:08:36 +0000
Subject: note 108726 rejected from mongocollection.ensureindex by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188114@lists.php.net to get a copy of this message
Note Submitter: adminsand at gmail dot com ---- Question is - is there a way to detect if collection exist in PHP Mongo driver so we don't need to do "ensureIndex" every time we use collection ? I'm talking about situation when we have no idea at all if we just created collection or it was created before. If we could do that then our database collection could be changed/created on demand instead of creating it before we need it.

« previous php.notes (#188114) next »