#8079 ensure_index command should not drop indexes

v1.5.0
closed
bitesize (76)
General
nobody
2016-05-09
2016-04-13
No

In the EnsureIndexCommand code, we shouldn't drop any indexes. I think the original idea was to remove indexes that weren't needed any more. But if anyone has created their own custom indexes directly (e.g. to support external scripts or code), the command would delete them. We should change it to not delete any.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2016-05-02
    • status: open --> in-progress
    • assigned_to: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2016-05-02
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2016-05-02

    On branch db/8079

    To test, add a mongo index on a collection, then run paster ensure_index development.ini Check log file for output. The index should still be there. Running with --clean will make it be dropped.

     
  • Dave Brondsema

    Dave Brondsema - 2016-05-09
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2016-08-22
    • Milestone: unreleased --> v1.5.0
     

Log in to post a comment.