Name: reuse_query_results
Owner: Cookpad Inc.
Description: reuse mysql query results
Created: 2015-05-07 01:07:46.0
Updated: 2017-06-26 03:32:20.0
Pushed: 2015-05-28 11:17:40.0
Homepage: null
Size: 232
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Improve development environment speed. Reuse query results and clear cache when insert update and delete record. No more db requests.
Add this line to your application's Gemfile:
'reuse_query_results', git: 'https://github.com/cookpad/reuse_query_results'
And then execute:
$ bundle
Or install it yourself as:
$ gem install reuse_query_results
run command on development environment .
E_QUERY_RESULTS=1 rails server
Can share update status between separated applications.
itializers/reuse_query_results.rb
ache = ActiveSupport::Cache.lookup_store(:dalli_store, address)
eQueryResults.storage = ReuseQueryResults::Storage.new(sync_client: memcache)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)