Search Engines (SOLR, ElasticSearch) Try and understand how indexes are constructed. When commit operations are performed, analyze your indexes at write and read time. 44 / 65
class Person include Kashmir def initialize(name, age) @name = name @age = age end representations do rep :name rep :age end end Person.new('Netto Farah', 27).represent(:name, :age) => {:name=>"Netto Farah", :age=>"27"} 54 / 65
Chef.all.each do |chef| chef.recipes.to_a end SELECT * FROM chefs SELECT "recipes".* FROM "recipes" WHERE "recipes"."chef_id" = 1 SELECT "recipes".* FROM "recipes" WHERE "recipes"."chef_id" = 2 ... SELECT "recipes".* FROM "recipes" WHERE "recipes"."chef_id" = N 61 / 65