Sha256: ba2f413c01c69b683b8d05467bf4d3f38ca9d577d6b181f803e616438695288c
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
[![Build Status](https://travis-ci.org/mirakui/activerecord-mysql-index-hint.png)](https://travis-ci.org/mirakui/activerecord-mysql-index-hint) # activerecord-mysql-index-hint MySQL index hint support for ActiveRecord ## Installation Add this line to your application's Gemfile: gem 'activerecord-mysql-index-hint' ## Usage class Product < ActiveRecord::Base end Product.where(user_id: 1).force_index(:idx_user_id).first # => SELECT `products`.* FROM `products` FORCE INDEX(`idx_user_id`) WHERE `products`.`user_id` = 1 LIMIT 1
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-mysql-index-hint-0.0.1 | README.md |