タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

mongodbとrubyとtipsに関するlarkerのブックマーク (1)

  • MongoDB で drop index (Ruby) - おさかな日誌

    ユニーク index を削除しようと思ってメモ. 一応公式ドキュメントにもいろいろのってるけど, 名前で消せるというのを読み取るのに少し時間かかったのでメモ with Ruby ドライバー client = Mongo::MongoClient.new collection = client.db("your_db").collection("your_collection") # インデックスを追加 collection.ensure_index({"foo_id" => 1}, {"unique" => true, "dropDups" => true}) # インデックス確認 collection.index_information # ここに実体があるみたい client.db("your_db").collection("system.indexes") # インデックス削除 #

    MongoDB で drop index (Ruby) - おさかな日誌
    larker
    larker 2014/03/06
    ユニーク index の削除方法
  • 1