Repository is archived
No commit activity in last 3 years
No release in over 3 years
ActiveRecord extension that gives USE and FORCE index to any ActiveRecord Model.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.0

Runtime

 Project Readme

ActiveRecord::ForcibleIndex Gem Version Build Status

ActiveRecord extension that implements USE INDEX and FORCE INDEX.

How to use

Add it to your Gemfile.

  # ...
  gem 'active-record-forcible-index'
  # ...

Having the model bellow:

  class DummyModel < ActiveRecord::Base
    require 'active_record_forcible_index'
  end

You can use #use_index or #force_index by invoking:

  # code here
  DummyModel.all.use_index('dummy_index')
  # code here

Note: Get dummy_index value from your SQL database.

Authors

Catalin Ilinca and Alexandru Emil Lupu

Contributing

Thanks to our contributors.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request