Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-171

Configuration option so Mongoid doesn't automatically create indexes

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Creating an indexes can be a potentially huge operation. Mongoid should have a configuration to allow people to set it to not automatically create the indexes.

      autocreate_indexes: false

      An associated work item for this would be to provide a Rake task (or simple Mongoid helper like Mongoid.setup_indexes) that someone can run to create the indexes outside the scope of running their models within an app.

      From this thread:
      http://groups.google.com/group/mongoid/browse_thread/thread/445a5683bc8e19e6

            Assignee:
            Unassigned Unassigned
            Reporter:
            railsjedi Jacques Crocker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: