【发布时间】:2012-07-28 08:45:42
【问题描述】:
我有一个包含很多搜索选项的搜索表单。我将如何索引所有这些列?创建多列索引可以吗?
导轨示例:
add_index :cars, [:brand, :fuel, :year_from, :year_to, :price_from, :price_to] and so on...
在单个索引中包含大量列是否“可以”?p>
P.S 我正在使用最新的 Postgresql D.S
【问题讨论】:
标签: ruby-on-rails postgresql indexing