cookpad/reuse_query_results

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ReuseQueryResults

Improve development environment speed. Reuse query results and clear cache when insert update and delete record. No more db requests.

Installation

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
Usage

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)
Contributing
  1. Fork it ( https://github.com/[my-github-username]/reuse_query_results/fork )
  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 a new Pull Request

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.