Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-311

When we create GridFS object empty collection fs.chunks is generated. May be it is not right to do this in this step?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.1
    • Component/s: None
    • Environment:
      all

      When we create GridFS object empty collection fs.chunks is generated. May be it isn't right to do this in this step?

      import pymongo
      from gridfs import GridFS
      
      conn = pymongo.Connection()
      conn.drop_database("gridfs-test")
      
      print("Collections: " + str(conn["gridfs-test"].collection_names()))
      # Collections: []
      
      g = GridFS(conn["gridfs-test"], "fs")
      
      print("Collections: " + str(conn["gridfs-test"].collection_names()))
      # Collections: [u'system.indexes', u'fs.chunks']
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            uladzimir_mihura@epam.com Uladzimir Mihura
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: