by Guilherme Pereira
# config/application.rb
# require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "sprockets/railtie"
require "rails/test_unit/railtie"
decibel=# explain select * from customer where state='TX';
QUERY PLAN
----------------------------------------------------------------------------------
Index Scan using customer__state on customer (cost=0.00..5.96 rows=1 width=287)
Index Cond: (state = 'TX'::bpchar)
(2 rows)
HStore good example
1.7 million rows => 90 thousand rows !
https://gist.github.com/guiferrpereira/83cb91a0e3f343af6a44
Benchmark => https://github.com/guiferrpereira/blog