どうも、G* Advent Calendar 2012、11日目担当、@literaliceです。 さて、突然ですが先日、grails-mongodb-compound-index-attributesというGrailsのプラグインを公開しました。 このプラグインは、GrailsのMongoDBプラグインを拡張し、compound indexにunique属性などを追加できるようにするものです。こんな: class Book { static mapping = { compoundIndex contributor: 1, name: 1, indexAttributes: [name: "idxName", unique: true] } String contributor String name } で、この機能はどうせ将来的にMongoDBプラグインに実装されるでしょうし、わざわ