Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 16b4397787
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (16 sloc) 0.711 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
## What is this ##
active_record_handlersocket is an activerecord plugin for HandlerSocket

## What kinds of queries are supported? ###
Only find by primary key is supported in current version

  * User.find(id)
  * Project.user #belongs_to

Next step is to supporting foreign key query

## Installation ##
#### Step 0: Install HandlerSocket ####
https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL

#### Step 1: Install ruby-handlersocket ####
https://github.com/winebarrel/ruby-handlersocket

#### Step 2: Install this plugin ####

#### Step 3: Configure in initializers ####
Place this in `config/initializers/active_record_handlersocket.rb`

    ActiveRecord::Base.use_handlersocket '127.0.0.1', 9998
Something went wrong with that request. Please try again.