MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({:create=>"mongoid_shortener_shortened_urls"}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae0c4df3e7ed448000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:37:40 UTC, "created_at"=>2011-11-21 23:37:40 UTC}]) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae2d2df3e7ed496000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:46:26 UTC, "created_at"=>2011-11-21 23:46:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae2d2df3e7ed496000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:46:26 UTC, "created_at"=>2011-11-21 23:46:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae2eedf3e7ed4a0000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:46:54 UTC, "created_at"=>2011-11-21 23:46:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae2eedf3e7ed4a0000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:46:54 UTC, "created_at"=>2011-11-21 23:46:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae30fdf3e7ed4aa000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:47:27 UTC, "created_at"=>2011-11-21 23:47:27 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae30fdf3e7ed4aa000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:47:27 UTC, "created_at"=>2011-11-21 23:47:27 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae33bdf3e7ed4b4000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:11 UTC, "created_at"=>2011-11-21 23:48:11 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae33bdf3e7ed4b4000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:11 UTC, "created_at"=>2011-11-21 23:48:11 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae33bdf3e7ed4b4000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:11 UTC, "created_at"=>2011-11-21 23:48:11 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae34adf3e7ed4be000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:26 UTC, "created_at"=>2011-11-21 23:48:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae34adf3e7ed4be000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:26 UTC, "created_at"=>2011-11-21 23:48:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae34adf3e7ed4be000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:26 UTC, "created_at"=>2011-11-21 23:48:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae366df3e7ed4c8000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:54 UTC, "created_at"=>2011-11-21 23:48:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae366df3e7ed4c8000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:54 UTC, "created_at"=>2011-11-21 23:48:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae366df3e7ed4c8000004'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:48:54 UTC, "created_at"=>2011-11-21 23:48:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae366df3e7ed4c8000005'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:54 UTC, "created_at"=>2011-11-21 23:48:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae366df3e7ed4c8000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:48:54 UTC, "created_at"=>2011-11-21 23:48:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3addf3e7ed4d2000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:05 UTC, "created_at"=>2011-11-21 23:50:05 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3addf3e7ed4d2000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:05 UTC, "created_at"=>2011-11-21 23:50:05 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3addf3e7ed4d2000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:05 UTC, "created_at"=>2011-11-21 23:50:05 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3addf3e7ed4d2000005'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:05 UTC, "created_at"=>2011-11-21 23:50:05 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3d1df3e7ed4dc000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:41 UTC, "created_at"=>2011-11-21 23:50:41 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3d1df3e7ed4dc000003'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:41 UTC, "created_at"=>2011-11-21 23:50:41 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3d1df3e7ed4dc000004'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:50:41 UTC, "created_at"=>2011-11-21 23:50:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3d1df3e7ed4dc000005'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:41 UTC, "created_at"=>2011-11-21 23:50:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3d1df3e7ed4dc000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:50:41 UTC, "created_at"=>2011-11-21 23:50:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3f2df3e7ed4e6000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:51:14 UTC, "created_at"=>2011-11-21 23:51:14 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3f2df3e7ed4e6000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:51:14 UTC, "created_at"=>2011-11-21 23:51:14 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3f3df3e7ed4e6000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:51:15 UTC, "created_at"=>2011-11-21 23:51:15 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3f3df3e7ed4e6000005'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:51:15 UTC, "created_at"=>2011-11-21 23:51:15 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae3f3df3e7ed4e6000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:51:15 UTC, "created_at"=>2011-11-21 23:51:15 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae3f3df3e7ed4e6000007'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:51:15 UTC, "created_at"=>2011-11-21 23:51:15 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae480df3e7ed4f0000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:36 UTC, "created_at"=>2011-11-21 23:53:36 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000005'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000007'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae481df3e7ed4f0000008'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:53:37 UTC, "created_at"=>2011-11-21 23:53:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000005'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4a0df3e7ed4fa000007'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:08 UTC, "created_at"=>2011-11-21 23:54:08 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000005'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000007'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4cbdf3e7ed504000009'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:54:51 UTC, "created_at"=>2011-11-21 23:54:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000001'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000002'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000004'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000005'), "unique_key"=>"1", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000006'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000007'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f000009'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecae4e1df3e7ed50f00000a'), "unique_key"=>"0", "updated_at"=>2011-11-21 23:55:13 UTC, "created_at"=>2011-11-21 23:55:13 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa32df3e7edb46000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:10 UTC, "created_at"=>2011-11-22 01:26:10 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa59df3e7edb54000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:26:49 UTC, "created_at"=>2011-11-22 01:26:49 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafa76df3e7edb6e000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:27:18 UTC, "created_at"=>2011-11-22 01:27:18 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafb3bdf3e7edbdd000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:30:35 UTC, "created_at"=>2011-11-22 01:30:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbc6df3e7edc6f000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:32:54 UTC, "created_at"=>2011-11-22 01:32:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafbfcdf3e7edc7f000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:33:48 UTC, "created_at"=>2011-11-22 01:33:48 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 500 Internal Server Error in 13ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafca9df3e7edc99000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:36:41 UTC, "created_at"=>2011-11-22 01:36:41 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafda3df3e7edcc3000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:51 UTC, "created_at"=>2011-11-22 01:40:51 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 500 Internal Server Error in 13ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafda4df3e7edcc3000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:52 UTC, "created_at"=>2011-11-22 01:40:52 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafda4df3e7edcc3000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:40:52 UTC, "created_at"=>2011-11-22 01:40:52 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000005'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 500 Internal Server Error in 13ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdcbdf3e7edcd9000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:41:31 UTC, "created_at"=>2011-11-22 01:41:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 500 Internal Server Error in 12ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafdffdf3e7edcfb000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:23 UTC, "created_at"=>2011-11-22 01:42:23 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe1adf3e7edd0d000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:42:50 UTC, "created_at"=>2011-11-22 01:42:50 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000003'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000004'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000005'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe47df3e7edd26000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:35 UTC, "created_at"=>2011-11-22 01:43:35 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe59df3e7edd32000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:53 UTC, "created_at"=>2011-11-22 01:43:53 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000003'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000004'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000005'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 3ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe5adf3e7edd32000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:43:54 UTC, "created_at"=>2011-11-22 01:43:54 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000003'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000004'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000005'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe6edf3e7edd42000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:14 UTC, "created_at"=>2011-11-22 01:44:14 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafe7fdf3e7edd58000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:44:31 UTC, "created_at"=>2011-11-22 01:44:31 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafecadf3e7edd6e000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:45:46 UTC, "created_at"=>2011-11-22 01:45:46 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafed9df3e7edd7c000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:01 UTC, "created_at"=>2011-11-22 01:46:01 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 2ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafedadf3e7edd7c000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:02 UTC, "created_at"=>2011-11-22 01:46:02 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafedadf3e7edd7c000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:02 UTC, "created_at"=>2011-11-22 01:46:02 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafeecdf3e7edd8a000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:20 UTC, "created_at"=>2011-11-22 01:46:20 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecafefddf3e7edd98000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:46:37 UTC, "created_at"=>2011-11-22 01:46:37 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb4000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaff38df3e7eddb400000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:47:36 UTC, "created_at"=>2011-11-22 01:47:36 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffb7df3e7eddcd000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:43 UTC, "created_at"=>2011-11-22 01:49:43 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb8df3e7eddcd000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:44 UTC, "created_at"=>2011-11-22 01:49:44 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>""}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb8df3e7eddcd000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:44 UTC, "created_at"=>2011-11-22 01:49:44 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffb8df3e7eddcd00000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:49:44 UTC, "created_at"=>2011-11-22 01:49:44 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>""}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd9000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffcfdf3e7eddd900000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:07 UTC, "created_at"=>2011-11-22 01:50:07 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecaffe2df3e7eddeb00000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:50:26 UTC, "created_at"=>2011-11-22 01:50:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"23"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 0ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb001ddf3e7eddfd00000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:51:25 UTC, "created_at"=>2011-11-22 01:51:25 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0078df3e7edef4000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:56 UTC, "created_at"=>2011-11-22 01:52:56 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0078df3e7edef4000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:56 UTC, "created_at"=>2011-11-22 01:52:56 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb0079df3e7edef4000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 2ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef4000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0079df3e7edef400000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:52:57 UTC, "created_at"=>2011-11-22 01:52:57 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0096df3e7edf0e00000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:53:26 UTC, "created_at"=>2011-11-22 01:53:26 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf28000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb00e7df3e7edf2800000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:54:47 UTC, "created_at"=>2011-11-22 01:54:47 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb0121df3e7ee04b00000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 01:55:45 UTC, "created_at"=>2011-11-22 01:55:45 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB admin['$cmd'].find({:ismaster=>1}) MONGODB dummy_test['system.namespaces'].find({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000001'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000002'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://ahha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://ahha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000004'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"1"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"1"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000005'), "unique_key"=>"1", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000006'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://yahoo.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://yahoo.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://yahoo.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000007'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"123"}).sort([[:_id, :asc]]) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000008'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].update({"_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000008')}, {"$inc"=>{"use_count"=>1}}) Completed 301 Moved Permanently in 1ms MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a3000009'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://google.com"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://google.com"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].insert([{"use_count"=>0, "url"=>"http://google.com", "_id"=>BSON::ObjectId('4ecb093bdf3e7ee2a300000a'), "unique_key"=>"0", "updated_at"=>2011-11-22 02:30:19 UTC, "created_at"=>2011-11-22 02:30:19 UTC}]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:url=>"http://haha"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].find({:unique_key=>"0"}).sort([[:_id, :asc]]) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:url=>"http://haha"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{:unique_key=>"0"}, "fields"=>nil}) MONGODB dummy_test['$cmd'].find({"count"=>"mongoid_shortener_shortened_urls", "query"=>{}, "fields"=>nil}) MONGODB dummy_test['mongoid_shortener_shortened_urls'].remove({}) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9239ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (119.0169ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0739ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.2549ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1812ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.2403ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.2010ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000001", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2420ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0541ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://yahoo.com"} flags=[] limit=-1 skip=0 fields=nil (0.1950ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1609ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://yahoo.com"}} (0.2041ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1919ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000002", "use_count"=>0, "url"=>"http://yahoo.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1211ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2241ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0489ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://ahha"} flags=[] limit=-1 skip=0 fields=nil (0.1729ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1607ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://ahha"}} (0.2658ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1969ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1719ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0520ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.1740ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1612ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.1988ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1981ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000003", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://yahoo.com"} flags=[] limit=-1 skip=0 fields=nil (0.2201ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"1"} flags=[] limit=-1 skip=0 fields=nil (0.1793ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://yahoo.com"}} (0.2110ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"1"}} (0.2100ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000004", "use_count"=>0, "url"=>"http://yahoo.com", "unique_key"=>"1", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1001ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2377ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0491ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.1841ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1671ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.1950ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1979ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000005", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1028ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1988ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0410ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://yahoo.com"} flags=[] limit=-1 skip=0 fields=nil (0.1662ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.2139ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://yahoo.com"}} (0.2091ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1957ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000006", "use_count"=>0, "url"=>"http://yahoo.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1042ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2530ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0498ms) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"123"} flags=[] limit=-1 skip=0 fields=nil (0.3471ms) Completed 301 Moved Permanently in 1ms MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2398ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0589ms) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~123"} MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"123"} flags=[] limit=-1 skip=0 fields=nil (0.2518ms) Completed 301 Moved Permanently in 1ms MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2460ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0501ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.1822ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1616ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.2031ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1972ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000007", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1330ms) Processing by MongoidShortener::ShortenedUrlsController#translate as HTML Parameters: {"unique_key"=>"~0"} MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.2732ms) MOPED: 127.0.0.1:27017 UPDATE database=dummy_test collection=mongoid_shortener_shortened_urls selector={"_id"=>"500b6a08df3e7ebb46000007"} update={"$inc"=>{"use_count"=>1}} flags=[] (0.0772ms) Completed 301 Moved Permanently in 1ms MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1721ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0489ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2549ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0501ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.1960ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1619ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.2012ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1960ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000008", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.2472ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2098ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0520ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://google.com"} flags=[] limit=-1 skip=0 fields=nil (0.1819ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1650ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://google.com"}} (0.1948ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1967ms) MOPED: 127.0.0.1:27017 INSERT database=dummy_test collection=mongoid_shortener_shortened_urls documents=[{"_id"=>"500b6a08df3e7ebb46000009", "use_count"=>0, "url"=>"http://google.com", "unique_key"=>"0", "updated_at"=>2012-07-22 02:48:40 UTC, "created_at"=>2012-07-22 02:48:40 UTC}] flags=[] (0.1140ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2511ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0460ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"url"=>"http://haha"} flags=[] limit=-1 skip=0 fields=nil (0.2050ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=dummy_test collection=mongoid_shortener_shortened_urls selector={"unique_key"=>"0"} flags=[] limit=-1 skip=0 fields=nil (0.1600ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"url"=>"http://haha"}} (0.1988ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{"unique_key"=>"0"}} (0.1948ms) MOPED: 127.0.0.1:27017 COMMAND database=dummy_test command={:count=>:mongoid_shortener_shortened_urls, :query=>{}} (0.2189ms) MOPED: 127.0.0.1:27017 DELETE database=dummy_test collection=mongoid_shortener_shortened_urls selector={} flags=[] (0.0482ms)