public
Description: Benchmarking tests of using RoR polymorphic relationships through strings versus integers, with and without indices.
Homepage:
Clone URL: git://github.com/ngauthier/ruby-on-rails-polymorphism-benchmarks.git
ngauthier (author)
Fri Jun 13 12:17:26 -0700 2008
commit  9fe7c7bbe6d387e547c8ef32f6be4a2c934b313c
tree    371a5437c5d6c4a2efe8d0e46d0f1e74216961b3
name age message
file README Loading commit data...
README
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