https://github.com/brookisme/familyable-testapp
Dummy App for validating performance gain of SQL calls from Familyable Gem
https://github.com/brookisme/familyable-testapp
Last synced: 11 months ago
JSON representation
Dummy App for validating performance gain of SQL calls from Familyable Gem
- Host: GitHub
- URL: https://github.com/brookisme/familyable-testapp
- Owner: brookisme
- Created: 2015-02-20T20:21:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-20T20:32:09.000Z (over 11 years ago)
- Last Synced: 2025-06-05T23:05:00.303Z (about 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Familyable Test App
The [Familyable](https://github.com/brookisme/familyable) gem claims a **huge** perfomance gain of a recursive N+1 search for finding decendents/elders/etc...
This app is a test app that is going to check that that is actually true.
Once completed, the results will be here in this README. Until then...
##### Start testing yourself
```
$ git clone git@github.com:brookisme/familyable-testapp.git
$ cd familyable-testapp
$ bundle exec rake db:create
$ bundle exec rake db:migrate
$ bundle exec rake db:seed
```
db/seeds.rb is currently set up to create 5 generations, where the first generation has 15 people and each generation afterwards is 3 to 6 times bigger than the parents generation. Edit this file as you see fit for your testing needs.
You'll need to of course write the recursive methods to compare to... I'll be doing that soon enough if you just want to wait.