Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Benchmarking tests of using RoR polymorphic relationships through strings versus integers, with and without indices.

Notifications You must be signed in to change notification settings

ngauthier/ruby-on-rails-polymorphism-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby on Rails Polymorphic Relation Benchmarking
Nick Gauthier (nick@smartlogicsolutions.com)

I created this app to test the polymorphic relationships in rails.

Specifically, I wanted to know if using strings for comparison was slower
than using a manual linking table via integers.

I created four linking tables, two with strings and two with integers.
One of each type has an index on the type, the other does not.

Please expand upon my benchmarks to find the fastest way possible to create and
(more importantly) find these links.

Edit the file test/test_helper.rb to set parameters. Run with "rake"


-Nick

About

Benchmarking tests of using RoR polymorphic relationships through strings versus integers, with and without indices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published