0.0
No commit activity in last 3 years
No release in over 3 years
This gem implements some of the ideas discussed in this post:http://brainspec.com/blog/2012/09/28/lightning-json-in-rails/ for LIGHTNING fast rails APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

active_record
>= 0
 Project Readme

ArLightning

Turbo boost your Rails APIs with some ar_lightning!

We all know Ruby isn't the fastest language and we know Rails does ALOT of magic. Sometimes this magic (awesome though it is) deceives us into thinking Ruby is slower then it is and wei simply can't have speed!

If your API is simply returning data this gem could be for you.

Installation

Add this line to your application's Gemfile:

gem 'ar_lightning'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ar_lightning

Usage

Simply send the method 'lightning' to your AR class/query and get back plain old hash objects. This skips initializing AR objects in the name of speed which saves ALOT of time with large datasets.

This idea was stolen from this post: http://brainspec.com/blog/2012/09/28/lightning-json-in-rails/ by Sergey Nartimov

TODO

  1. Associations
  2. Dynamic methods

Contributing

  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