主键列、外键列和索引上使用的列的数据类型。
Data type of primary key columns, foreign key columns, and columns used on indexes.
索引下推只需要事实表的单列索引,虽然在所需的外键列是索引的第一个键的情况下可以使用多列索引。
Index push-downs require only a single-column index on the fact table, although they can use a multi-column index if the required foreign-key column is the first key in the index.
运行 rake db:migrate 以创建 SUBSCRIPTIONS 表并将外键列添加到 SUBJECTS 中。
Run rake db:migrate to create the SUBSCRIPTIONS table and add foreign key columns to SUBJECTS.
应用推荐