We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
目前,我使用了一种非常简单的方法,效果很好:只需包含一个
Array
字段。这可行,但我对 Image.any_in map/reduce 的性能仍然有点怀疑。我认为该映射/归约可能有更好的解决方案,但尚未找到。
For now, I used a very simple approach, that works very well: Just include an
Array
-field.This works, but I am a still a little doubtfull about the performance of the Image.any_in map/reduce. I think there may be a better solution for that map/reduce but have not found it, yet.
尝试 mongoid_taggable gem。它确实想要你正在寻找的。
Try mongoid_taggable gem. It does want you are looking for.
mongoid-tags-arent-hard gem 似乎更有能力(并且更积极地维护) )比我见过的其他宝石。
The mongoid-tags-arent-hard gem seems more capable (and more actively maintained) than the other gems I've seen.
这是一个用于map/reduce和实时聚合策略的“可扩展”解决方案 mongoid_taggable_with_context
here it is a "scalable" solution for map/reduce and real time aggregation strategies mongoid_taggable_with_context