title: pymongo insert inside the loop
body: <p>all I have a tricky problem about pymongo insert inside the loop, Why the result is only first record if I use insert() or is the last record if I use save().</p>
  
  <pre><code>from pymongo import Connection
  
  m = Connection(config.get('server'))
  mdb = m[config.get('db_name')]
  
  cond = {
      'corp_fax_no'  : u'5667767', 
      'corp_area_id' : 12L, 
      'corp_url'     : u'http://www.example.com', 
      'corp_id'      : 1L, 
      'corp_addr'    : u'some thing', 
      'corp_post_no' : u'220940', 
      'corp_email'   : u'123@123.com', 
      'corp_tel_no'  : u'714-717-2265'
  }
  
  @tool.timeit
  def test_insert_mongo():
      cn = '{0}'.format(config.get("coll_timetest"))
      coll = mdb[cn]
      for i in xrange(10000):
          print i
          cond.update({'corp_id':i})
          coll.insert(cond)
  
  test_insert_mongo()
  </code></pre>
  
  <p>I just insert 10000 entries in Mongo, But I can only find one entry. Why?</p>