[{"message":"Some debug line","progname":null,"severity":0,"timestamp":1399270050980,"key":"120e39829020b82f83315b80a5620e8b"},{"message":" (1.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM \"users\" LIMIT 20) subquery_for_count","progname":null,"severity":0,"timestamp":1399270210482,"key":"32e1a129994f0fc54869370e49cf9564"},{"message":" (0.5ms) select name, data_type, value from site_settings","progname":null,"severity":0,"timestamp":1399270210626,"key":"f3fed3bec79bc28de9a880a4044d7042"},{"message":"DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from load at bin/thin:16)","progname":null,"severity":2,"timestamp":1399270214101,"key":"1783a53c4c1b10e34051245b004eac06"},{"message":"Started GET \"/\" for 127.0.0.1 at 2014-05-05 16:10:14 +1000","progname":null,"severity":1,"timestamp":1399270214105,"key":"25ea4cead9e1fdea376568258627403b"},{"message":" User Load (1.3ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270214167,"key":"77d80f9bcbd16ee4b9fb25209b20a26f"},{"message":"Processing by ListController#latest as HTML","progname":null,"severity":1,"timestamp":1399270214199,"key":"356fad8be01ba54796564821f0399234"},{"message":" UserVisit Load (26.0ms) SELECT \"user_visits\".* FROM \"user_visits\" WHERE \"user_visits\".\"user_id\" = $1 AND \"user_visits\".\"visited_at\" = '2014-05-05' ORDER BY \"user_visits\".\"id\" ASC LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270214436,"key":"b50ff8d4b796b124d43f23ca4f8de632"},{"message":" SQL (6.2ms) UPDATE \"users\" SET \"previous_visit_at\" = '2014-05-05 04:59:58.782518' WHERE \"users\".\"id\" = 1","progname":null,"severity":0,"timestamp":1399270214472,"key":"b2b38151fa4ee3f9b8809681be3779fc"},{"message":" SQL (2.9ms) UPDATE \"users\" SET \"last_seen_at\" = '2014-05-05 06:10:14.185636' WHERE \"users\".\"id\" = 1","progname":null,"severity":0,"timestamp":1399270214488,"key":"9b6a897781f9a633aeb1be575173c264"},{"message":" (0.4ms) SELECT \"groups\".\"name\" FROM \"groups\"","progname":null,"severity":0,"timestamp":1399270214581,"key":"b194dad666007a40ec77206ae533f4f1"},{"message":" (0.5ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270214585,"key":"406455f945dc8a93732c0dcecdc64423"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,19,20,23,25)) ORDER BY \"categories\".\"position\" ASC","progname":null,"severity":0,"timestamp":1399270214587,"key":"3b5edcb2340ba8945c9564e194336e4b"},{"message":" Topic Load (1.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12104, 3038, 13189, 12925, 11, 5250, 2628, 13965, 1026, 14549, 2626, 2, 11498, 5425, 25, 2828, 28, 24, 13110, 12282, 389, 2629, 12648, 14747)","progname":null,"severity":0,"timestamp":1399270214625,"key":"c8567ed923bd6aa80d6d14053ef0b5a0"},{"message":" (0.3ms) SELECT \"categories\".\"id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270214644,"key":"aabdbf6fc7406b485018e292c5286d8e"},{"message":" PostActionType Load (0.5ms) SELECT \"post_action_types\".* FROM \"post_action_types\" ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270214650,"key":"cc7ccbb2f4f52c1915a1160ced0d657e"},{"message":" PostActionType Load (0.5ms) SELECT \"post_action_types\".* FROM \"post_action_types\" WHERE \"post_action_types\".\"name_key\" IN ('inappropriate', 'spam', 'notify_moderators') ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270214662,"key":"96e7290ec995b42ac11aa03c5aa044b1"},{"message":" SiteContent Load (0.4ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'top' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270214675,"key":"4811a203da7e9bf0e5f82995f93963c6"},{"message":" SiteContent Load (0.2ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'bottom' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270214677,"key":"39316aac8fb78561b465d1428eda78ce"},{"message":" (0.8ms) SELECT COUNT(*) AS count_all, notification_type AS notification_type FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (id > 84737 and read = false) GROUP BY notification_type [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270214687,"key":"4e028dc6b84409c0a8178507f762385b"},{"message":" (16.9ms) SELECT COUNT(*) FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (read = false AND notification_type = 6) [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270214705,"key":"82e077e6177973ccd4327588ffb82126"},{"message":" UserStat Load (0.7ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270214713,"key":"6d8531ea09ad277a70e715f65f8dc98b"},{"message":" (2.4ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"user_id\" = $1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270214723,"key":"f0611b9614f7dd70bdacc52abe269bdf"},{"message":" (7.3ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270214732,"key":"4245e6333b7cdef53cde3b0c99a3a116"},{"message":" CACHE (0.0ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270214733,"key":"f4e64956299abea77e1a8b4a722f0531"},{"message":" (86.8ms) SELECT u.id AS user_id,\n topics.id AS topic_id,\n topics.created_at,\n highest_post_number,\n last_read_post_number,\n c.name AS category_name,\n tu.notification_level\n FROM users u\n INNER JOIN user_stats AS us ON us.user_id = u.id\n FULL OUTER JOIN topics ON 1=1\n LEFT JOIN topic_users tu ON tu.topic_id = topics.id AND tu.user_id = u.id\n LEFT JOIN categories c ON c.id = topics.category_id\n WHERE u.id IN (1) AND\n topics.archetype <> 'private_message' AND\n ((tu.last_read_post_number < topics.highest_post_number AND COALESCE(tu.notification_level, 1) >= 2) OR (topics.created_at >= GREATEST(CASE\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -1 THEN u.created_at\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -2 THEN COALESCE(u.previous_visit_at,u.created_at)\n ELSE ('2014-05-05 06:10:14.735793'::timestamp - INTERVAL '1 MINUTE' * COALESCE(u.new_topic_duration_minutes, 2880))\n END, us.new_since) AND tu.last_read_post_number IS NULL AND COALESCE(tu.notification_level, 2) >= 2)) AND\n (topics.visible OR u.admin OR u.moderator) AND\n topics.deleted_at IS NULL AND\n ( category_id IS NULL OR NOT c.read_restricted OR category_id IN (\n SELECT c2.id FROM categories c2\n JOIN category_groups cg ON cg.category_id = c2.id\n JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id\n WHERE c2.read_restricted )\n )\n AND NOT EXISTS( SELECT 1 FROM category_users cu\n WHERE cu.user_id = u.id AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0)\n\n ORDER BY topics.bumped_at DESC LIMIT 500","progname":null,"severity":0,"timestamp":1399270214824,"key":"9dabad9f62b06cc4ad3a6ad76b924d23"},{"message":" (0.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270214830,"key":"deafd9b2d8f70f8a464710a572723189"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270214833,"key":"b5f4178b8b60931839d60bcc539e6d43"},{"message":" SQL (82.6ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270214938,"key":"26e7baf6df347ce65a88532ab1bdf772"},{"message":" TopicUser Load (1.0ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270214944,"key":"d54cc13863345063891be3c9f5be4b95"},{"message":" User Load (0.9ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270214958,"key":"26a76a429a8468981bf0759b821c8a6f"},{"message":" Rendered list/list.erb within layouts/application (7.2ms)","progname":null,"severity":1,"timestamp":1399270214997,"key":"c269179e5279f61c9bc71d87049321bb"},{"message":" Rendered common/_special_font_face.html.erb (0.8ms)","progname":null,"severity":1,"timestamp":1399270216236,"key":"76272b876d71f0082779e9591e019f8f"},{"message":" SiteCustomization Load (0.4ms) SELECT \"site_customizations\".* FROM \"site_customizations\" WHERE \"site_customizations\".\"enabled\" = 't' ORDER BY \"site_customizations\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270216242,"key":"720b5527135187db6936c885db4db0b1"},{"message":" SiteCustomization Load (0.5ms) SELECT \"site_customizations\".* FROM \"site_customizations\" WHERE \"site_customizations\".\"key\" = '43005f4f-a544-4311-9ae2-e4a07b4bfbe1' ORDER BY \"site_customizations\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270216248,"key":"1e828fdef8dcb58ee39c09b581a2ccf3"},{"message":" Rendered common/_discourse_stylesheet.html.erb (25.1ms)","progname":null,"severity":1,"timestamp":1399270216262,"key":"302be6ab13d1db6cfa44065b7671e7db"},{"message":" SiteContent Load (0.4ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'head' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270216264,"key":"34d41548b60d314c6aa14041db8fb706"},{"message":" Rendered common/_discourse_javascript.html.erb (6.9ms)","progname":null,"severity":1,"timestamp":1399270216272,"key":"6cf4d401d0ab9cb4e9b04369300b4005"},{"message":"Completed 200 OK in 2081ms (Views: 1295.3ms | ActiveRecord: 221.0ms)","progname":null,"severity":1,"timestamp":1399270216283,"key":"af01b460a97c64c726b9472b22b0192c"},{"message":"Started GET \"/new.json\" for 127.0.0.1 at 2014-05-05 16:10:34 +1000","progname":null,"severity":1,"timestamp":1399270234060,"key":"7e7e8cd73cd71fd33d05c1605fe3495b"},{"message":"Processing by ListController#new as JSON","progname":null,"severity":1,"timestamp":1399270234073,"key":"de132dd2aa8b3cd73249be20e4ce4b0a"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270234075,"key":"2f37eab61998dd3c2c957f4a8d2b1d2d"},{"message":" UserStat Load (0.6ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270234079,"key":"f4fa87dbff339b22d289dd7ac4d0effc"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270234080,"key":"71e3ac71ac7532aa7a9163e5803e6ce4"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270234083,"key":"5834f210cc1b2bf0984c8d5a3d0a694b"},{"message":" SQL (48.7ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270234136,"key":"22338ac2001ef2bfc5315e24a3b1e081"},{"message":"Completed 200 OK in 63ms (Views: 0.1ms | ActiveRecord: 52.3ms)","progname":null,"severity":1,"timestamp":1399270234137,"key":"cf331260062cef614d7b1415649c514c"},{"message":"Started GET \"/unread.json\" for 127.0.0.1 at 2014-05-05 16:10:34 +1000","progname":null,"severity":1,"timestamp":1399270234782,"key":"4b5108929b40196236f48422908ce399"},{"message":"Processing by ListController#unread as JSON","progname":null,"severity":1,"timestamp":1399270234792,"key":"11c72b32c64c8ecddccb09d797de3c7f"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270234794,"key":"af37c680c87498fa7f64fbcb144940ea"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270234796,"key":"5460474ed564c6f50b4180d3d440e428"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270234797,"key":"7930a910c6ed8d9895fe52b85ea0ad1c"},{"message":" Topic Load (49.3ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270234848,"key":"dbc52ac05e50a63efaed28f5c7c09f52"},{"message":"Completed 200 OK in 56ms (Views: 0.1ms | ActiveRecord: 50.8ms)","progname":null,"severity":1,"timestamp":1399270234849,"key":"d33998bd2d1bab3359c6b33d083f5d93"},{"message":"Started GET \"/categories.json\" for 127.0.0.1 at 2014-05-05 16:10:35 +1000","progname":null,"severity":1,"timestamp":1399270235486,"key":"c31122c05aa1bb619b858ed41f005d9d"},{"message":"Processing by CategoriesController#index as JSON","progname":null,"severity":1,"timestamp":1399270235506,"key":"9ae350d484299c2f8b066d03bd55b299"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270235509,"key":"7a650ecd991c584a6d71e0bb24ed046b"},{"message":" CategoryFeaturedTopic Load (1.2ms) SELECT category_id, topic_id FROM \"category_featured_topics\" ORDER BY \"category_featured_topics\".\"rank\" ASC","progname":null,"severity":0,"timestamp":1399270235516,"key":"56bde11d1e7cda1226102c4c12f496d6"},{"message":" Topic Load (3.4ms) SELECT \"topics\".* FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (14663, 14711, 5283, 12257, 12156, 14057, 14657, 12926, 3823, 13094, 12525, 14573, 7785, 14338, 4546, 14260, 5249, 1, 14735, 14719, 11835, 14615, 7407, 12529, 1184, 14117, 12455, 14258, 6547, 14669, 12878, 13966, 2349, 14741, 14651, 9077, 14573, 12530, 11613, 9768, 14047, 12712, 14133, 10175, 13986, 14740, 14748, 1127, 13964, 7210, 13315, 14110, 13815, 14726, 9100, 11832, 14603, 14732, 11497, 13688, 14727, 12710, 13736, 14713, 10938, 12650, 7780, 13979, 14514, 12455, 13819, 14694, 5751, 11403, 14254, 6587, 3102, 13003, 14729, 13111, 12201, 14724, 12511, 4924, 13421, 1420, 11763, 14728, 13847, 9621, 13767, 14041, 14677)","progname":null,"severity":0,"timestamp":1399270235532,"key":"3cb739cf35740782d67f7d1611f94727"},{"message":" User Load (1.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3, 1, 2, 6268, 5351, 5160, 6755, 32, 6060, 9271, 1979, 8325, 9141, 1042, 9143, 8828, 184, 9536, 9660, 8492, 9410, 8434, 8810, 8222, 529, 6808, 9560, 8059, 761, 7915, 4228, 9448, 9579, 7292, 8607, 9395, 9370, 6626, 6586, 6548, 19, 9601, 3035, 9651, 1496, 5559, 6313, 4549, 9185)","progname":null,"severity":0,"timestamp":1399270235540,"key":"fd0c3be52db8b7ffd8960c3c81d4ea65"},{"message":" (0.8ms) SELECT categories.id FROM \"categories\" LEFT OUTER JOIN \"category_featured_users\" ON \"category_featured_users\".\"category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"category_featured_users\".\"user_id\" LEFT OUTER JOIN \"categories\" \"subcategories_categories\" ON \"subcategories_categories\".\"parent_category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"topics\" ON \"topics\".\"id\" = \"subcategories_categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270235556,"key":"9e46602d72a9974ad7fb3d8688ab1fd4"},{"message":" Category Load (0.7ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,18,18,18,18,19,19,19,19,19,20,23,23,25,25,25,25,25)) ORDER BY position asc, COALESCE(categories.posts_week, 0) DESC, COALESCE(categories.posts_month, 0) DESC, COALESCE(categories.posts_year, 0) DESC","progname":null,"severity":0,"timestamp":1399270235557,"key":"8a9c06aa0210c9d1527bf3836ea244c4"},{"message":" CategoryFeaturedUser Load (0.6ms) SELECT \"category_featured_users\".* FROM \"category_featured_users\" WHERE \"category_featured_users\".\"category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270235565,"key":"f829739fec3764a7658c11171b074eaf"},{"message":" User Load (1.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (761, 32, 19, 529, 7588, 3, 4308, 3035, 1, 6626, 1868, 8222, 8307, 9653, 9271, 2072, 8325, 9536, 9185, 9579, 6060, 8068, 8883, 9660, 9038, 6064, 8810, 5351, 2, 5682, 8492, 6613, 2291, 9560, 1496, 9395, 7915, 9490, 8851, 9601, 6548, 5048, 3415, 6808, 7229, 4263, 1995, 8018, 20, 9362, 184, 8607, 9329, 8458, 9143, 9448, 4228, 8828, 4220, 9370, 6586, 8437, 9410, 6313, 9222, 5559, 8824, -1, 4939)","progname":null,"severity":0,"timestamp":1399270235583,"key":"58084953d49b728f79d93e576d66c1df"},{"message":" Category Load (0.7ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"parent_category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270235591,"key":"8ec75e19d6ed78ba37d95798204ac119"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12925, 11498, 12282, 13965, 14549, 13110, 12648)","progname":null,"severity":0,"timestamp":1399270235599,"key":"b29357e278409a5d3dc6608e7ca448b8"},{"message":" TopicUser Load (2.2ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14740, 14748, 13815, 9621, 14573, 5751, 14729, 14719, 13421, 6587, 14694, 7780, 11835, 14711, 14724, 4924, 14735, 4546, 3823, 13736, 14047, 12926, 13964, 13688, 14254, 1, 6547, 11497, 11763, 12156, 12650, 14041, 14258, 14603, 14657, 14669, 14728, 14727, 7210, 9100, 11403, 13966, 9768, 14663, 10175, 2349, 3102, 12529, 14057, 14110, 14133, 1127, 14260, 12257, 7407, 12712, 9077, 5283, 12710, 1184, 14117, 13315, 14741, 11613, 1420, 7785, 10938, 12201, 12511, 13094, 13986, 14338, 14615, 14651, 14677, 14713, 14732, 14726, 5249, 11832, 12455, 12878, 13111, 13767, 13979, 14514, 12525, 12530, 13003, 13819, 13847) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270235603,"key":"8b061a1a838206b2d75702936953489a"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270235607,"key":"a622d080550ad561e524fafc82cab952"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270235608,"key":"5e8958e93e6ce2b25d8debb64f786789"},{"message":" Topic Load (0.6ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2]]","progname":null,"severity":0,"timestamp":1399270235614,"key":"6fd0acaee969d0f8517e7a07fcdcf9b8"},{"message":" Topic Load (0.5ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 389]]","progname":null,"severity":0,"timestamp":1399270235620,"key":"cd28c71b9f75a8371e559613a2f70f60"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 11]]","progname":null,"severity":0,"timestamp":1399270235623,"key":"71a1266c284e98c94a1defb19eba3c62"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 1026]]","progname":null,"severity":0,"timestamp":1399270235626,"key":"e013e6d3dcba822207521e1c23ff6fc4"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2628]]","progname":null,"severity":0,"timestamp":1399270235629,"key":"75ab328dfb0a2b2bb7637cb65eeab9f7"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 28]]","progname":null,"severity":0,"timestamp":1399270235633,"key":"c3bacad1557f81dc14b9c01e2aa7bbde"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2629]]","progname":null,"severity":0,"timestamp":1399270235636,"key":"6781efec48501ec40c9a34af3437b289"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2626]]","progname":null,"severity":0,"timestamp":1399270235639,"key":"814169ebacbffec737d39264f4806c02"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2828]]","progname":null,"severity":0,"timestamp":1399270235641,"key":"e9eba4b55f19463c6e052d162a73044b"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 24]]","progname":null,"severity":0,"timestamp":1399270235644,"key":"75f4872b919e13e0a19d434444dcead2"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 3038]]","progname":null,"severity":0,"timestamp":1399270235647,"key":"cf82bf4ac95be72bf3e756b3dc7f36cd"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 25]]","progname":null,"severity":0,"timestamp":1399270235649,"key":"3f63e08344d107530365c8265b5ccd89"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5425]]","progname":null,"severity":0,"timestamp":1399270235652,"key":"38e2d404075e4f8637ee778c4c859a1a"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5250]]","progname":null,"severity":0,"timestamp":1399270235654,"key":"49b534aaeff0491b197077d14d4dd704"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 13189]]","progname":null,"severity":0,"timestamp":1399270235657,"key":"6f23cabcfadf556906fecc59d98a14ba"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 14747]]","progname":null,"severity":0,"timestamp":1399270235659,"key":"1294d132875c880f06d2069679e492ab"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 12104]]","progname":null,"severity":0,"timestamp":1399270235661,"key":"f8585abeb1a5a536a3e120b39b6eb73e"},{"message":"Completed 200 OK in 176ms (Views: 0.1ms | ActiveRecord: 24.7ms)","progname":null,"severity":1,"timestamp":1399270235682,"key":"94a95e2d1d166bf5bc58ce7d5a83cea3"},{"message":"Started GET \"/starred.json\" for 127.0.0.1 at 2014-05-05 16:10:36 +1000","progname":null,"severity":1,"timestamp":1399270236800,"key":"e97753d482e70f300c42794d19e1707e"},{"message":"Processing by ListController#starred as JSON","progname":null,"severity":1,"timestamp":1399270236839,"key":"bd9f4a75b98b6f3622f3c217671ac573"},{"message":" User Load (1.1ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270236843,"key":"c270408b1897f310a79c46f575ce47cf"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270236847,"key":"26f3a7fbfe44e0af9935feb63606c30d"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270236848,"key":"3a8d29ca8960a5458cec19b150374571"},{"message":" Topic Load (18.7ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.starred) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270236868,"key":"b8751c733ebab0794bcb07b3b075b17f"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1, 2, 3, 17, 7, 11, 5, 6)","progname":null,"severity":0,"timestamp":1399270236872,"key":"0dfb5eda62a546aa497fb60a60188eb9"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2, 11, 24, 1026, 2828, 28, 389)","progname":null,"severity":0,"timestamp":1399270236874,"key":"03c742755f35c9bb87c02821ebf12f4d"},{"message":" TopicUser Load (1.0ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (12050, 13099, 3102, 11906, 13552, 3823, 12295, 6854, 9402, 6242, 7444, 11916, 7029, 6134, 7452, 8233, 8823, 331, 11777, 10630, 9683, 10620, 10117, 9932, 9203, 9586, 7401, 7034, 3238, 8831) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270236875,"key":"4f190778b50a123c20cacd1030cf093e"},{"message":" User Load (1.0ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6548, 32, 1, 8239, 3415, 2625, 6060, 7483, 5351, 8085, 1, 8077, 38, 8059, 3197, 3929, 901, 1, 1, 1, 8856, 8863, 32, 1, 8869, 19, 3695, 8810, 7179, 901, 6268, 1, 7948, 471, 3062, 8, 2, 8202, 32, 471, 2291, 7796, 6488, 2128, 4549, 8360, 1, 8024, 32, 2824, 761, 6626, 1995, 5311, 5636, 8184, 3681, 5351, 4939, 1, 32, 4217, 19, 6329, 1263, 284, 32, 2753, 2850, 3, 6211, 1995, 1, 32, 1, 5586, 6695, 4945, 7510, 5642, 19, 6018, 6330, 7009, 4457, 2625, 3, 6722, 5351, 32, 5271, 6607, 3987, 1, 2416, 2602, 1263, 5189, 32, 2595, 2989, 1216, 1, 2381, 1566, 5900, 19, 6329, 1, 6259, 5707)","progname":null,"severity":0,"timestamp":1399270236878,"key":"6ba13a066f0bfce008ac669058639018"},{"message":"Completed 200 OK in 55ms (Views: 0.1ms | ActiveRecord: 23.3ms)","progname":null,"severity":1,"timestamp":1399270236895,"key":"6e5f4d2385a945755f0f2341a4c90bff"},{"message":"Started GET \"/unread.json\" for 127.0.0.1 at 2014-05-05 16:10:37 +1000","progname":null,"severity":1,"timestamp":1399270237558,"key":"09a75d01fa193c1eecca0658735c01e6"},{"message":"Processing by ListController#unread as JSON","progname":null,"severity":1,"timestamp":1399270237569,"key":"1d0937d6cac2fae7cab3872017ae6354"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270237570,"key":"3aec0f6ccbc3778882df0c22226f8771"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270237572,"key":"8fecedb433d8090ec6245c100b381c06"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270237573,"key":"7c8f749da8494b645fcebeb97f77a239"},{"message":" Topic Load (47.6ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270237622,"key":"bee4e729d1d146bd01dcadd398106f23"},{"message":"Completed 200 OK in 54ms (Views: 0.1ms | ActiveRecord: 48.8ms)","progname":null,"severity":1,"timestamp":1399270237623,"key":"c0f0a59f3ad180d27c1f5824b56a82d6"},{"message":"Started GET \"/new.json\" for 127.0.0.1 at 2014-05-05 16:10:38 +1000","progname":null,"severity":1,"timestamp":1399270238286,"key":"c323c20c5a7cb9f8c04fec6acad8ed0f"},{"message":"Processing by ListController#new as JSON","progname":null,"severity":1,"timestamp":1399270238298,"key":"7cc68411c3507485aee8cd8c98909780"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270238299,"key":"ee014c56bf8d3fcb9fa60cfbed6111ca"},{"message":" UserStat Load (0.5ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270238302,"key":"40218181a0871af07b226fecc2e5eba3"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270238304,"key":"696d347f3ce6b7265edc42c0af00b3e0"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270238306,"key":"7e6ec96029db2ec70ee392952492949f"},{"message":" SQL (38.5ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270238348,"key":"56695664945e3f16d05b2c29121a50de"},{"message":"Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 40.5ms)","progname":null,"severity":1,"timestamp":1399270238349,"key":"2b6cfb13a1702f06914edecb6fc6263c"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:38 +1000","progname":null,"severity":1,"timestamp":1399270238980,"key":"18e5f5d4f346d35f6559f2c8d8a40515"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270238991,"key":"830dba88347381821ef26f8cf5e8b27f"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270238993,"key":"5e4533443f38398c6b0866227362ab36"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270238995,"key":"aed855194674e6795f91cb658bdeeed6"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270238996,"key":"986aaf6f3671818f11b8668fd5a57716"},{"message":" SQL (81.7ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270239081,"key":"ab8a7b634abb369941d34fcf29c7540f"},{"message":" TopicUser Load (1.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270239087,"key":"0cbd9be73153fc40a11e0b49fd0928cb"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270239089,"key":"2cc76ae93aaa80cc2255c1a8da0367de"},{"message":"Completed 200 OK in 112ms (Views: 0.1ms | ActiveRecord: 84.7ms)","progname":null,"severity":1,"timestamp":1399270239104,"key":"063e91be5cc61b4b6296efedbfb9581b"},{"message":"Started GET \"/t/14748/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:10:40 +1000","progname":null,"severity":1,"timestamp":1399270240242,"key":"fa0c41dc773969a6e141324e759fad29"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270240263,"key":"4fc49ab29065b59c235dd66b3ec8c5e2"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"14748\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270240263,"key":"a9f942cb11924c72f8e5ba9e61c485ec"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270240266,"key":"e8af8d50c1d4383c99e2fc2c625f5e9d"},{"message":" Topic Load (0.9ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 14748 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270240269,"key":"ec89c43f5898f2b298857118f82558ca"},{"message":" Category Load (0.4ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17)","progname":null,"severity":0,"timestamp":1399270240271,"key":"b91289f7a391e2830e04e34e2a0e505b"},{"message":" (0.7ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240280,"key":"531dba4bcabc1461608d19a2f5079397"},{"message":" (0.4ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240282,"key":"ac5394b0b613bb38ada8939060eea33e"},{"message":" (0.7ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_14748'","progname":null,"severity":0,"timestamp":1399270240283,"key":"498a61b756d43ff3b0246c6e04431527"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_14748' LIMIT 1","progname":null,"severity":0,"timestamp":1399270240289,"key":"4a7d488755f4857d58dfd3108ade4676"},{"message":" Post Load (0.8ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (48993) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270240296,"key":"93eaa312f35f3ff777c450ebaa63d9c1"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270240321,"key":"b17bdc63a5c6f791bea6470254ffe4d6"},{"message":" (0.3ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270240328,"key":"7b1865c2169c5a6943e8f78a6298f9d1"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270240332,"key":"729b71bde98ba1faf9f881914c6ec6f3"},{"message":" (8.6ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (48993)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270240341,"key":"8352f220387785e23a53372e37db14e5"},{"message":" TopicUser Load (0.6ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240346,"key":"c67e2ee3b8f2c1a66f2e716e5b51e363"},{"message":" (0.3ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (48993) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270240349,"key":"c65631b81fbe570ca4b76d9a89e771f2"},{"message":" (0.5ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 14748 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1)","progname":null,"severity":0,"timestamp":1399270240352,"key":"5a826d21c152e53c611ab9c2f549b63c"},{"message":" PostAction Load (0.6ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (48993) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270240354,"key":"02e199a915f4213b0f9824fc95089477"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 1]]","progname":null,"severity":0,"timestamp":1399270240359,"key":"0b53229dfa7b9bf9215de8a34689fb18"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 1]]","progname":null,"severity":0,"timestamp":1399270240359,"key":"fae014e5ed5feb0d722d3c393ee7700d"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240367,"key":"36717624d000354822e354e2f712fc4a"},{"message":" Group Load (0.7ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240375,"key":"e7175a54086d21e3a789c52ee4587481"},{"message":" (0.5ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 14748 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270240377,"key":"22a9ed3dfc93211c1355acaee5aa62c9"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270240378,"key":"44df12b530c856b87fdf1db4840d49e6"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270240379,"key":"9ba75aedc6eab9cf96ee77eaa7388c1a"},{"message":" Topic Load (46.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (14748)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270240426,"key":"b7b8cbb4f242cacf39905a237ec8df9f"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270240428,"key":"77712337925d2677e238751f298182ab"},{"message":" SQL (36.1ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (14748)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270240468,"key":"8bc826daea7cd969850bc07445afc350"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270240469,"key":"251b86f82bab12e60ce5a6920f99ac7d"},{"message":" Topic Load (9.5ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (14748,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (14748)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270240480,"key":"06d88acbf9114007221abf00ee71200f"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17)","progname":null,"severity":0,"timestamp":1399270240481,"key":"a58bc1b395082377859ae25d5f632798"},{"message":" TopicUser Load (0.6ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (4725, 1983, 316, 830, 12420, 1472, 7383) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270240482,"key":"ab52791235838fe83d5424c5c901b8e4"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (2712, 1, 3325, 32, 4251, 1735, 32, 1486, 1566, 1927, 714, 255, 85, 700, 3, 8, 32, 7962, 1, 1995, 32, 1278, 114, 3450, 4708)","progname":null,"severity":0,"timestamp":1399270240483,"key":"661915b4b6b787fde2716461747a2ac5"},{"message":" (0.8ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 14748) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270240487,"key":"6c8cc488759a1c5378d15e58f934a674"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 14748 LIMIT 1","progname":null,"severity":0,"timestamp":1399270240489,"key":"69a4dd74f14d8cb132d8c097b6001e07"},{"message":" (0.5ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 14748]]","progname":null,"severity":0,"timestamp":1399270240491,"key":"577b6f0091552285282261f2323484f6"},{"message":"Completed 200 OK in 232ms (Views: 0.1ms | ActiveRecord: 119.0ms)","progname":null,"severity":1,"timestamp":1399270240496,"key":"3c0084f637d67983a2b15a4be446f119"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:41 +1000","progname":null,"severity":1,"timestamp":1399270241896,"key":"794addf63854d5c41d15dd7d4bea525d"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270241907,"key":"0f74513b8f7ff92fdbfda9076a9ecd9b"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270241909,"key":"80deddde38dcc1e5fd84982783f2af2a"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270241911,"key":"dba3a70a6ceb02953c4bd1f4af9095b1"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270241912,"key":"e106d662ad6911e88c3e3afc6dd0d245"},{"message":" SQL (81.0ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270241997,"key":"c74ace4f70b6db08a2c295f29de08231"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270242003,"key":"d3c185203b01450f48a566ddc9945b28"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270242005,"key":"9b616de0b3e106e24b33644ec738ad6a"},{"message":"Completed 200 OK in 113ms (Views: 0.1ms | ActiveRecord: 83.5ms)","progname":null,"severity":1,"timestamp":1399270242021,"key":"ad60d0234e38a4d9287abda1daff3ea7"},{"message":"Started GET \"/t/12257/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:10:43 +1000","progname":null,"severity":1,"timestamp":1399270243454,"key":"53c39492518a0e23683bb989a384c0bd"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270243465,"key":"43c0e14efbe67c736e513635ae7bfe5a"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"12257\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270243466,"key":"bafc212b2a47fcf83aac4b43371fc612"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270243467,"key":"dc67a3de9c373cc955c5ab63fa0927ce"},{"message":" Topic Load (0.7ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 12257 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270243469,"key":"b40ebc733a5479c1ef11b351eee6d260"},{"message":" Category Load (0.3ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (9)","progname":null,"severity":0,"timestamp":1399270243471,"key":"8e4146bf5b18125a6fae2b084e661fe3"},{"message":" (2.1ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243474,"key":"48e74192cb816e792494e6c5b15b9f91"},{"message":" (0.5ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243475,"key":"1b3424afa785a3d3d696255452c18855"},{"message":" (2.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_12257'","progname":null,"severity":0,"timestamp":1399270243479,"key":"1aa1459feef242218f914b19d9ec41d2"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_12257' LIMIT 1","progname":null,"severity":0,"timestamp":1399270243482,"key":"7a81db744164f91b338b41c506eea195"},{"message":" Post Load (5.8ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (38937, 38938, 38939, 38941, 38943, 38944, 38945, 38946, 38949, 38985, 38991, 39349, 43825, 43837, 43845, 43848, 43850, 43881, 43885, 48977) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270243489,"key":"2f1660f2197bbd5ccef7c402bb4232d2"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (32, 4263, 7948, 5351, 5048, 8325, 2770)","progname":null,"severity":0,"timestamp":1399270243493,"key":"2ff2a9df1ad78cf762c3d3d562dbec5a"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (7948, 32, 4263, 2770)","progname":null,"severity":0,"timestamp":1399270243495,"key":"1cda84a3525764e4caf16fc9845a2329"},{"message":" (0.4ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243497,"key":"0cea8acf356ba5a26c936bea0ce27892"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270243498,"key":"56e215e5b170e2a88ea2acfe6706ff32"},{"message":" (4.3ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (38937,38938,38939,38941,38943,38944,38945,38946,38949,38985,38991,39349,43825,43837,43845,43848,43850,43881,43885,48977)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270243503,"key":"e1e58393346e1df70a771f690cac7b58"},{"message":" TopicUser Load (0.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243505,"key":"27821ffb79bc2a2414dd05e6389d51e5"},{"message":" (0.5ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (38937, 38938, 38939, 38941, 38943, 38944, 38945, 38946, 38949, 38985, 38991, 39349, 43825, 43837, 43845, 43848, 43850, 43881, 43885, 48977) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270243507,"key":"330481cd66c27b0a1253a76f5adc0178"},{"message":" (5.7ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 12257 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53)","progname":null,"severity":0,"timestamp":1399270243513,"key":"ba70d8694a64ef4dc79716c5cd30be4e"},{"message":" PostAction Load (8.2ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (38937, 38938, 38939, 38941, 38943, 38944, 38945, 38946, 38949, 38985, 38991, 39349, 43825, 43837, 43845, 43848, 43850, 43881, 43885, 48977) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270243523,"key":"63fbee387cbdd130d8eb524be1f682d1"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243534,"key":"4aa53d01a0424b2fabec4b51ba957c51"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243535,"key":"b085458779e113f2daf13adb4294a003"},{"message":" CACHE (0.1ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243538,"key":"27e8a77fa777f5ac323a3a5f61f51eb1"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243543,"key":"583851f1192879353aab17aa6a6220b3"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270243544,"key":"10795a7c9250c8ec21c96833d46d04a7"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 2770]]","progname":null,"severity":0,"timestamp":1399270243547,"key":"6bba8eebf7dc2feb054c5f802363889c"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 8325]]","progname":null,"severity":0,"timestamp":1399270243548,"key":"cb020fe396a2b863b8010723ea20fb65"},{"message":" User Load (1.1ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243550,"key":"ee038bf02d303d254838cdcfccb65764"},{"message":" Group Load (0.4ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243552,"key":"8bdc5f1f0360780b42407883d9f08d91"},{"message":" (0.5ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 12257 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270243554,"key":"5357d9d605fb825d871de5d685b63986"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (32, 4263, 7948, 2770, 1, 6929, 5048, 8325, 19, 5351, 1832, 8344, 6626, 2)","progname":null,"severity":0,"timestamp":1399270243555,"key":"200d78641b2a153f2e48a83f9af99775"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270243556,"key":"6677ceb2a49187d5e5f392f49c164c8e"},{"message":" Topic Load (48.3ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (12257)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 9 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270243606,"key":"b7d589afa1a2bf0dfaae6642c06354e9"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270243608,"key":"f35164403c5c5a30c8b7ffcc6929d5b9"},{"message":" SQL (37.1ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (12257)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 9 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270243649,"key":"5f23e1bdf78452b2a98240e5db83f795"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270243650,"key":"48096489517ef459592df372be3b32d6"},{"message":" Topic Load (9.0ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (12257,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (12257)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 9 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270243661,"key":"4e0c706011661b58d6e2819de667a68b"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (9)","progname":null,"severity":0,"timestamp":1399270243662,"key":"509b27778173cab06f41e04c9b84e349"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2628)","progname":null,"severity":0,"timestamp":1399270243664,"key":"5aed50e3c358093544a8843a69d6bf88"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (11927, 11576, 4579, 6388, 12112, 13107, 12508) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270243665,"key":"5540c2f426ec6cc47b14617539cd98e9"},{"message":" User Load (0.4ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (7796, 32, 6283, 1027, 19, 2562, 32, 2600, 2, 1, 1353, 32, 6626, 1, 8105, 32, 5351, 2770, 5351, 8364, 2625, 32, 6626, 8405, 7948, 32, 1995, 6626)","progname":null,"severity":0,"timestamp":1399270243667,"key":"c6cf1ea8a9ec4e6b513e789530c06fd6"},{"message":" (2.5ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 12257) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270243671,"key":"b7868bb9efac019b23acbeca8ad85ab7"},{"message":" Category Exists (0.3ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 12257 LIMIT 1","progname":null,"severity":0,"timestamp":1399270243674,"key":"eac04c774dbcb316e1fd9d352411a9e5"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 12257]]","progname":null,"severity":0,"timestamp":1399270243675,"key":"5983931691a35e38cbaf5136e8b407ec"},{"message":"Completed 200 OK in 216ms (Views: 0.1ms | ActiveRecord: 138.7ms)","progname":null,"severity":1,"timestamp":1399270243682,"key":"340dbdbefc22bc9be28293b168682127"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:45 +1000","progname":null,"severity":1,"timestamp":1399270245649,"key":"52ea7469f55cedaa9958c0dedfc4ae81"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270245662,"key":"4256bc47b805c79b21e0861f59c697c2"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270245665,"key":"8751de4892c624f2e6d443e90f6521a4"},{"message":" (0.9ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270245667,"key":"e61b0703f93cd7f5d41af8101782f62c"},{"message":" Draft Load (0.9ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270245670,"key":"37d356aea699d6cd505f5977b4e18cf2"},{"message":" SQL (83.3ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270245757,"key":"6eccbab2822f67c2708a6c92b9b07098"},{"message":" TopicUser Load (0.9ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270245764,"key":"18a2e69566d74fe25320b569a17b4961"},{"message":" User Load (0.7ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270245767,"key":"c3be44c4784f3e50f4988cc7ba9f3c31"},{"message":"Completed 200 OK in 124ms (Views: 0.1ms | ActiveRecord: 87.6ms)","progname":null,"severity":1,"timestamp":1399270245786,"key":"014e43e76d30680555ffb2a56b878b3b"},{"message":"Started GET \"/t/14741/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:10:47 +1000","progname":null,"severity":1,"timestamp":1399270247104,"key":"ab59c1cb0ea8529c0a766f8630504eab"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270247116,"key":"5870d386abd44ae524d10e48da0694e9"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"14741\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270247117,"key":"e942aa8ae50c2f39a8b66dee018e0fb0"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270247118,"key":"3411a1b4c6097eef0415578f0a6b6bbe"},{"message":" Topic Load (0.8ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 14741 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270247121,"key":"8a4a495ab34280150200f858ff35c250"},{"message":" Category Load (0.3ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270247122,"key":"3480a3f852675b348869da0c860e38e7"},{"message":" (0.4ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247124,"key":"2a4823586b0da23f967e780a98d82c37"},{"message":" (0.3ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247125,"key":"83520cd50fd5a4a56c669ef724536644"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_14741'","progname":null,"severity":0,"timestamp":1399270247126,"key":"cbe5e5673e63a902865b06564d85aa5a"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_14741' LIMIT 1","progname":null,"severity":0,"timestamp":1399270247128,"key":"0fc9d0a7fdee1e4413c9769680247efe"},{"message":" Post Load (0.4ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (48973) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270247130,"key":"fbb88e816d3ff9c77894d3090c58cbdc"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9271)","progname":null,"severity":0,"timestamp":1399270247131,"key":"5dc15f679d05d5559a2b024f0fc717e2"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270247133,"key":"a00b48f0fe688d24b845db9663cf655e"},{"message":" (2.6ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (48973)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270247136,"key":"b6e1f923a4ae4a43251a320fb1877e20"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247139,"key":"6f5b4f88b561f4097caec30fd5fd1469"},{"message":" (0.5ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (48973) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270247141,"key":"075ee73d5a89b827b75652ce521fd0ee"},{"message":" (0.5ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 14741 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1)","progname":null,"severity":0,"timestamp":1399270247142,"key":"e94841b10c89dfc90130c01ae5eff0e8"},{"message":" PostAction Load (0.5ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (48973) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270247143,"key":"658173f3507d2c72123fea65bc8f6851"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9271]]","progname":null,"severity":0,"timestamp":1399270247226,"key":"870e460fa4b9955d6f3178bdc4646232"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9271]]","progname":null,"severity":0,"timestamp":1399270247227,"key":"c195b3a0c349605ebc04311731f7f6f4"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247229,"key":"37b26e007bfa4ceeca8a3b350c11acc3"},{"message":" Group Load (0.3ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247230,"key":"f6663e047278a81e20f84b1f8f5e3d18"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 14741 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270247231,"key":"c6fbf62a094bf3f52832096a8a8089b8"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9271)","progname":null,"severity":0,"timestamp":1399270247232,"key":"068b2623ed5d4c7c8035eaad1345af24"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270247232,"key":"79678185b05854e2ff5367ac4d762f55"},{"message":" Topic Load (49.0ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270247283,"key":"e2b6d2ad4c95bcbee2ed15681668a0e2"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270247284,"key":"188c3e2e5b99c41a6e61cdb0ba0fd9f1"},{"message":" SQL (35.3ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270247324,"key":"59bea2aead8dbe2b9d9e6c2a71c03329"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270247325,"key":"b8cebaaf06ae4293c9500d3e374676da"},{"message":" Topic Load (10.3ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (14741,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270247337,"key":"370caa6553828861ba4018f49da43777"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270247338,"key":"83aaf35c4746d98fe33b7f5c93f6400b"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (1026)","progname":null,"severity":0,"timestamp":1399270247339,"key":"22cb6062b5dcb14b84a7e69cc62be2b8"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (13789, 11553, 9875, 14641, 2933, 10640, 7148) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270247340,"key":"11be25ecfd6552660671e42e264fd2f3"},{"message":" User Load (0.4ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 8492, 3415, 4549, 471, 7995, 7991, 1818, 6018, 8977, 2770, 2512, 2465, 5199, 32, 1, 7169, 6089, 5425, 2291)","progname":null,"severity":0,"timestamp":1399270247342,"key":"c91f64c74472eb7396a6549d3bd73fdc"},{"message":" (0.5ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 14741) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270247344,"key":"ae8e8cda12204bd4363eff6e71206093"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 14741 LIMIT 1","progname":null,"severity":0,"timestamp":1399270247345,"key":"e33bab41e4d875320bb624fdbc69b381"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270247346,"key":"d35159735d1397242d29eba262929fbf"},{"message":"Completed 200 OK in 232ms (Views: 0.1ms | ActiveRecord: 108.0ms)","progname":null,"severity":1,"timestamp":1399270247349,"key":"80812d65ae3910756cb7b50eefeeb557"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:48 +1000","progname":null,"severity":1,"timestamp":1399270248084,"key":"a984db8b8a66fff958b3092b776c9cab"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270248096,"key":"e97cccc8a236a9c8120e1b7193ae8c5c"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270248098,"key":"29fd0019155df61ad02912e34531c29a"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270248100,"key":"fb1ee9bca6a89f5834e99c07f6e17859"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270248101,"key":"1ceb00d864c07adfb20be4e2f90169dd"},{"message":" SQL (78.8ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270248184,"key":"e658f19afcb9a51f1a28fbd33d68d36a"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270248189,"key":"7c403689ab716029f42612b5c2376d93"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270248191,"key":"2340bc779d3f35366fb58987011641c4"},{"message":"Completed 200 OK in 110ms (Views: 0.1ms | ActiveRecord: 81.1ms)","progname":null,"severity":1,"timestamp":1399270248207,"key":"da89a92bd0fa3efcc58fbecd1cfe1cf3"},{"message":"Started GET \"/t/12525/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:10:49 +1000","progname":null,"severity":1,"timestamp":1399270249287,"key":"52b56a586c89faf76118da20cd1d9c46"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270249299,"key":"fb0effd0effed8235e975db522d226e8"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"12525\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270249300,"key":"2604951dfe129f7b29c4801319b82473"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270249301,"key":"9d348ff5fecd85f51f89f2f851322723"},{"message":" Topic Load (1.1ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 12525 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270249304,"key":"f0999c65ae7d370cdb0af2b59082ec40"},{"message":" Category Load (0.8ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270249306,"key":"081ce121507f7c96d9e466e0b76a7feb"},{"message":" (0.7ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249309,"key":"ad8759fbaf4b7fa2033cbf85de529369"},{"message":" (0.5ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249310,"key":"cd2fb49f3ccb7e15a323cd77d924cc85"},{"message":" (2.2ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_12525'","progname":null,"severity":0,"timestamp":1399270249314,"key":"78d1db07f6ceb6906300232fd8102faf"},{"message":" Draft Load (0.7ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_12525' LIMIT 1","progname":null,"severity":0,"timestamp":1399270249316,"key":"ca700c2eb1c64459e4c3491a26615a5e"},{"message":" Post Load (0.7ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (39999, 40001, 40316, 40364, 44442, 44480, 48975, 48976) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270249322,"key":"384788c6691001893f33afd765883401"},{"message":" User Load (1.1ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (7948, 6626, 1, 19, 471, 4308, 32)","progname":null,"severity":0,"timestamp":1399270249325,"key":"de12f10158018450e1b84b491290e8b9"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (6626, 1, 471, 4308)","progname":null,"severity":0,"timestamp":1399270249328,"key":"d41319ee4f8a9611193322888e78cf0b"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270249331,"key":"9043799a69019f069a04cb4a4d4c8245"},{"message":" (3.0ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (39999,40001,40316,40364,44442,44480,48975,48976)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270249334,"key":"48afa4ec59ea9b2d74ab497002db79f7"},{"message":" TopicUser Load (0.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249337,"key":"70c87041942c0e3b300e58aefb1f1c47"},{"message":" (0.4ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (39999, 40001, 40316, 40364, 44442, 44480, 48975, 48976) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270249338,"key":"2d0ea01f4586d8828b9620de285bb4e3"},{"message":" (2.3ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 12525 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1, 2, 3, 4, 5, 6, 7, 8)","progname":null,"severity":0,"timestamp":1399270249341,"key":"19cda24855b53f1e8311890cf9387fa7"},{"message":" PostAction Load (0.8ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (39999, 40001, 40316, 40364, 44442, 44480, 48975, 48976) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270249343,"key":"5a399a252924371108fe2167690d6dcc"},{"message":" (0.3ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270249346,"key":"649f5280e89e56a391b5459405382b6d"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270249347,"key":"a4d2fee895ee0faae3328dcc6092c843"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270249349,"key":"c5cd6d6f52ccfb57ef7e908ea1e57b11"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270249351,"key":"55e059e2d34ac454d175d55b7f2a53f5"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 7948]]","progname":null,"severity":0,"timestamp":1399270249353,"key":"c3c18d461de8c0deedbe936e71b4144c"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 32]]","progname":null,"severity":0,"timestamp":1399270249354,"key":"5373648b46d2ff1a453b728a7e219188"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249356,"key":"2619fdef517e590998329c740c817610"},{"message":" Group Load (0.4ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249357,"key":"bc8abfb64174201329a89ac93380f873"},{"message":" (0.5ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 12525 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270249359,"key":"e0c580e9160d193b540db521e3e552eb"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1, 32, 7948, 471, 6626, 4308, 19)","progname":null,"severity":0,"timestamp":1399270249360,"key":"4e53991d77ed984b1e2d3c390db7d120"},{"message":" (0.3ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270249361,"key":"43f50ffa17556c2c1b10c019695773bf"},{"message":" Topic Load (45.4ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (12525)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270249408,"key":"1e8b95024bdfcff8fd676e3f9bb6b71d"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270249410,"key":"eb369bac46767a78846541cb0ea49ce7"},{"message":" SQL (38.0ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (12525)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270249453,"key":"d0362dc56d7cd6543d0cfeb67b250455"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270249454,"key":"d751414109365fad6e6609ba36bcc09d"},{"message":" Topic Load (9.7ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (12525,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (12525)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270249465,"key":"d0b325d092d8ccdb4e6e4537c3473078"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270249467,"key":"35f6a8f7ad61e0c6204096cfb9600704"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2)","progname":null,"severity":0,"timestamp":1399270249469,"key":"cf054357f45dfbcd3aa275c9456a392b"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (13431, 14557, 13004, 14314, 14425, 14432, 14718) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270249470,"key":"ddb71b70a65f616d3697cffbb498fae3"},{"message":" User Load (0.4ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6449, 6626, 8810, 32, 1, 1, 9513, 32, 8085, 32, 6205, 8222, 4263, 19, 32, 9653)","progname":null,"severity":0,"timestamp":1399270249471,"key":"fe2d5a0112a97ae6c5ca5e2b2b565992"},{"message":" (0.9ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 12525) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270249473,"key":"31b9fe4181b3dc948fa1ebb4c5e09559"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 12525 LIMIT 1","progname":null,"severity":0,"timestamp":1399270249475,"key":"550a4ea67ff65243fc0d1736b1ab80bb"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 12525]]","progname":null,"severity":0,"timestamp":1399270249475,"key":"8d6504a2b1b00b659bbb272af550a9f6"},{"message":"Completed 200 OK in 181ms (Views: 0.1ms | ActiveRecord: 116.0ms)","progname":null,"severity":1,"timestamp":1399270249481,"key":"89d86ad8cbec717bbb35c4199a9e42a6"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:50 +1000","progname":null,"severity":1,"timestamp":1399270250392,"key":"a92c7140bfed8e10bee06cc21a3e6386"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270250405,"key":"1115eef354c776220d05db3a5f552e68"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270250407,"key":"3b6a538182891da93724ab17825a29ca"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270250408,"key":"362b2857485b638de0d9cd8da9bd2113"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270250410,"key":"2bed59c6d3331b69d4b64b99e2081ab3"},{"message":" SQL (79.6ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270250496,"key":"ec72cc044a4a9bfedd5a1d3e1c33ba9a"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270250504,"key":"a60c55734753bbdd821dd9f672879da6"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270250506,"key":"9d64d9ee0a931d046711373a5341cd77"},{"message":"Completed 200 OK in 118ms (Views: 0.1ms | ActiveRecord: 82.3ms)","progname":null,"severity":1,"timestamp":1399270250524,"key":"3f19456816b61bd4249aa690079a58c3"},{"message":"Started GET \"/categories.json\" for 127.0.0.1 at 2014-05-05 16:10:51 +1000","progname":null,"severity":1,"timestamp":1399270251573,"key":"223eb35b1fa455853593fd1acc2c412e"},{"message":"Processing by CategoriesController#index as JSON","progname":null,"severity":1,"timestamp":1399270251586,"key":"2fe309b59fd7d42530de84a369e8fc9d"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270251587,"key":"e6f1230a82e1adf8b2ee648c9eeecd41"},{"message":" CategoryFeaturedTopic Load (0.7ms) SELECT category_id, topic_id FROM \"category_featured_topics\" ORDER BY \"category_featured_topics\".\"rank\" ASC","progname":null,"severity":0,"timestamp":1399270251589,"key":"a9bcc63e84956055d4220ecfb0047254"},{"message":" Topic Load (2.4ms) SELECT \"topics\".* FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (14663, 14711, 5283, 12257, 12156, 14057, 14657, 12926, 3823, 13094, 12525, 14573, 7785, 14338, 4546, 14260, 5249, 1, 14735, 14719, 11835, 14615, 7407, 12529, 1184, 14117, 12455, 14258, 6547, 14669, 12878, 13966, 2349, 14741, 14651, 9077, 14573, 12530, 11613, 9768, 14047, 12712, 14133, 10175, 13986, 14740, 14748, 1127, 13964, 7210, 13315, 14110, 13815, 14726, 9100, 11832, 14603, 14732, 11497, 13688, 14727, 12710, 13736, 14713, 10938, 12650, 7780, 13979, 14514, 12455, 13819, 14694, 5751, 11403, 14254, 6587, 3102, 13003, 14729, 13111, 12201, 14724, 12511, 4924, 13421, 1420, 11763, 14728, 13847, 9621, 13767, 14041, 14677)","progname":null,"severity":0,"timestamp":1399270251595,"key":"f106b845c520526ab0d17754e2f4748f"},{"message":" User Load (1.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3, 1, 2, 6268, 5351, 5160, 6755, 32, 6060, 9271, 1979, 8325, 9141, 1042, 9143, 8828, 184, 9536, 9660, 8492, 9410, 8434, 8810, 8222, 529, 6808, 9560, 8059, 761, 7915, 4228, 9448, 9579, 7292, 8607, 9395, 9370, 6626, 6586, 6548, 19, 9601, 3035, 9651, 1496, 5559, 6313, 4549, 9185)","progname":null,"severity":0,"timestamp":1399270251604,"key":"d4871bfaab02602e6270f72ef69d2466"},{"message":" (1.4ms) SELECT categories.id FROM \"categories\" LEFT OUTER JOIN \"category_featured_users\" ON \"category_featured_users\".\"category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"category_featured_users\".\"user_id\" LEFT OUTER JOIN \"categories\" \"subcategories_categories\" ON \"subcategories_categories\".\"parent_category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"topics\" ON \"topics\".\"id\" = \"subcategories_categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270251613,"key":"255f4dfacaf3b5449549663fa249fffe"},{"message":" Category Load (1.0ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,18,18,18,18,19,19,19,19,19,20,23,23,25,25,25,25,25)) ORDER BY position asc, COALESCE(categories.posts_week, 0) DESC, COALESCE(categories.posts_month, 0) DESC, COALESCE(categories.posts_year, 0) DESC","progname":null,"severity":0,"timestamp":1399270251615,"key":"e9204eebf977b8feaeccd126822e747f"},{"message":" CategoryFeaturedUser Load (0.8ms) SELECT \"category_featured_users\".* FROM \"category_featured_users\" WHERE \"category_featured_users\".\"category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270251620,"key":"bc18a7acdaad5c38f9eee644d9812cda"},{"message":" User Load (1.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (761, 32, 19, 529, 7588, 3, 4308, 3035, 1, 6626, 1868, 8222, 8307, 9653, 9271, 2072, 8325, 9536, 9185, 9579, 6060, 8068, 8883, 9660, 9038, 6064, 8810, 5351, 2, 5682, 8492, 6613, 2291, 9560, 1496, 9395, 7915, 9490, 8851, 9601, 6548, 5048, 3415, 6808, 7229, 4263, 1995, 8018, 20, 9362, 184, 8607, 9329, 8458, 9143, 9448, 4228, 8828, 4220, 9370, 6586, 8437, 9410, 6313, 9222, 5559, 8824, -1, 4939)","progname":null,"severity":0,"timestamp":1399270251632,"key":"06639687c165d1dd75ee4acec12a9f30"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"parent_category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270251638,"key":"6cb8ed89273e1b5ab69c57eb8b337f0c"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12925, 11498, 12282, 13965, 14549, 13110, 12648)","progname":null,"severity":0,"timestamp":1399270251643,"key":"e1e071620de333107cfd8f9e78a00ab6"},{"message":" TopicUser Load (1.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14740, 14748, 13815, 9621, 14573, 5751, 14729, 14719, 13421, 6587, 14694, 7780, 11835, 14711, 14724, 4924, 14735, 4546, 3823, 13736, 14047, 12926, 13964, 13688, 14254, 1, 6547, 11497, 11763, 12156, 12650, 14041, 14258, 14603, 14657, 14669, 14728, 14727, 7210, 9100, 11403, 13966, 9768, 14663, 10175, 2349, 3102, 12529, 14057, 14110, 14133, 1127, 14260, 12257, 7407, 12712, 9077, 5283, 12710, 1184, 14117, 13315, 14741, 11613, 1420, 7785, 10938, 12201, 12511, 13094, 13986, 14338, 14615, 14651, 14677, 14713, 14732, 14726, 5249, 11832, 12455, 12878, 13111, 13767, 13979, 14514, 12525, 12530, 13003, 13819, 13847) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270251647,"key":"44407096d5972f4bde4826d9b8108eea"},{"message":" (0.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270251650,"key":"290ecfad1bccc433c89b24ea515fb21b"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270251651,"key":"80b3f921aef1ef69e43b8b5f27064b02"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2]]","progname":null,"severity":0,"timestamp":1399270251653,"key":"e2b492d44a9d2d4b2fcb3a19c4a6df12"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 389]]","progname":null,"severity":0,"timestamp":1399270251656,"key":"c8bf3ec60968fe647b5c31a206fbee47"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 11]]","progname":null,"severity":0,"timestamp":1399270251659,"key":"fe145f15d4a45b2270aeec980efac03a"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 1026]]","progname":null,"severity":0,"timestamp":1399270251661,"key":"c3592b554f4d0e7c459ec866f7137c55"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2628]]","progname":null,"severity":0,"timestamp":1399270251664,"key":"798f9d1318a1b490a7ef588553c292ec"},{"message":" Topic Load (0.9ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 28]]","progname":null,"severity":0,"timestamp":1399270251669,"key":"26b27a64b57cbfea95ecf2f8ac7a2a8d"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2629]]","progname":null,"severity":0,"timestamp":1399270251672,"key":"d7188de9c6faf337e63866364aa42a31"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2626]]","progname":null,"severity":0,"timestamp":1399270251675,"key":"454900789449a9eb5ba248a2e88b75b4"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2828]]","progname":null,"severity":0,"timestamp":1399270251677,"key":"d3a9f5c186b1a3e230799849bf6c647b"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 24]]","progname":null,"severity":0,"timestamp":1399270251680,"key":"bec153be820a528685e3e108c4bf9afe"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 3038]]","progname":null,"severity":0,"timestamp":1399270251683,"key":"10acd64c0445c534b86fb294b725eba2"},{"message":" Topic Load (0.5ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 25]]","progname":null,"severity":0,"timestamp":1399270251687,"key":"a9a017182b084305836ebed1131ceaeb"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5425]]","progname":null,"severity":0,"timestamp":1399270251690,"key":"da2cdef3ed3e5efbfcff1049f4eebb79"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5250]]","progname":null,"severity":0,"timestamp":1399270251693,"key":"0835c419b6e7b04eb4cb443522d336a8"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 13189]]","progname":null,"severity":0,"timestamp":1399270251696,"key":"8357b64d4fcdbedabfdefba33b542979"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 14747]]","progname":null,"severity":0,"timestamp":1399270251699,"key":"900803f59ed0587696eb43a6bc67d3ec"},{"message":" Topic Load (0.5ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 12104]]","progname":null,"severity":0,"timestamp":1399270251702,"key":"30864e25730861a694af65ea1fd434c8"},{"message":"Completed 200 OK in 137ms (Views: 0.1ms | ActiveRecord: 19.8ms)","progname":null,"severity":1,"timestamp":1399270251723,"key":"d1dc9f6b054d3712cc4846fbe30851e1"},{"message":"Started GET \"/starred.json\" for 127.0.0.1 at 2014-05-05 16:10:52 +1000","progname":null,"severity":1,"timestamp":1399270252758,"key":"e5e31175bba6e568f0e2e3b072a61c74"},{"message":"Processing by ListController#starred as JSON","progname":null,"severity":1,"timestamp":1399270252770,"key":"b07ecbca616562fab29fb881954b5507"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270252772,"key":"d343e1fb16af103611614758d6a9d07a"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270252773,"key":"376bc5dbb69da4990aac1656f9232998"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270252774,"key":"05870ed91efecc0aaad797c2722f5ad4"},{"message":" Topic Load (23.7ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.starred) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270252799,"key":"484f63788ef7ca0277d0ccb282d46dca"},{"message":" Category Load (0.8ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1, 2, 3, 17, 7, 11, 5, 6)","progname":null,"severity":0,"timestamp":1399270252803,"key":"6713b4445ebd6eda1e45e1fdf85385c2"},{"message":" Topic Load (0.8ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2, 11, 24, 1026, 2828, 28, 389)","progname":null,"severity":0,"timestamp":1399270252807,"key":"3c7916012a178bdc93b40ebfc7b3720d"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (12050, 13099, 3102, 11906, 13552, 3823, 12295, 6854, 9402, 6242, 7444, 11916, 7029, 6134, 7452, 8233, 8823, 331, 11777, 10630, 9683, 10620, 10117, 9932, 9203, 9586, 7401, 7034, 3238, 8831) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270252809,"key":"f11c6178d7492773be77960258718eee"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6548, 32, 1, 8239, 3415, 2625, 6060, 7483, 5351, 8085, 1, 8077, 38, 8059, 3197, 3929, 901, 1, 1, 1, 8856, 8863, 32, 1, 8869, 19, 3695, 8810, 7179, 901, 6268, 1, 7948, 471, 3062, 8, 2, 8202, 32, 471, 2291, 7796, 6488, 2128, 4549, 8360, 1, 8024, 32, 2824, 761, 6626, 1995, 5311, 5636, 8184, 3681, 5351, 4939, 1, 32, 4217, 19, 6329, 1263, 284, 32, 2753, 2850, 3, 6211, 1995, 1, 32, 1, 5586, 6695, 4945, 7510, 5642, 19, 6018, 6330, 7009, 4457, 2625, 3, 6722, 5351, 32, 5271, 6607, 3987, 1, 2416, 2602, 1263, 5189, 32, 2595, 2989, 1216, 1, 2381, 1566, 5900, 19, 6329, 1, 6259, 5707)","progname":null,"severity":0,"timestamp":1399270252812,"key":"aabd48f330ca4bc42460088454e14f4f"},{"message":"Completed 200 OK in 59ms (Views: 0.1ms | ActiveRecord: 27.8ms)","progname":null,"severity":1,"timestamp":1399270252829,"key":"776bdf57661e5c002c36f88eca70c3ec"},{"message":"Started GET \"/unread.json\" for 127.0.0.1 at 2014-05-05 16:10:53 +1000","progname":null,"severity":1,"timestamp":1399270253581,"key":"1d57f1e08268d9cd1f224f9e71f1667e"},{"message":"Processing by ListController#unread as JSON","progname":null,"severity":1,"timestamp":1399270253593,"key":"00a666f08171bb37c5144f83cb181b1d"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270253594,"key":"529c59a8eff2b6bb949b7d658eb7c4a8"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270253596,"key":"a72e27d759059a3ff34124a7b3d63dc9"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270253597,"key":"e792651ef3123ce9e271269cf3b31aa3"},{"message":" Topic Load (45.8ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270253644,"key":"f52ef860ef4031ae8e50c19bf17e4aa2"},{"message":"Completed 200 OK in 52ms (Views: 0.1ms | ActiveRecord: 47.0ms)","progname":null,"severity":1,"timestamp":1399270253645,"key":"f4222bb2324a74dc922834b6566ec338"},{"message":"Started GET \"/new.json\" for 127.0.0.1 at 2014-05-05 16:10:54 +1000","progname":null,"severity":1,"timestamp":1399270254417,"key":"a6eaa69922601198726b8320db688261"},{"message":"Processing by ListController#new as JSON","progname":null,"severity":1,"timestamp":1399270254429,"key":"b8adb4f340047f0135923498543b808a"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270254430,"key":"eed5b8ea12d8c1c942f721ea794b7b54"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270254433,"key":"e05a8907d2c655b5d5aa4e90d6811ac1"},{"message":" (0.6ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270254435,"key":"c33be56fcfc214a7a49a616fa05a0e16"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270254436,"key":"ab8e07ec471e9557b34758ae64fdb40a"},{"message":" SQL (40.1ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270254480,"key":"2ae0d311010db81230f6e850b42c29e4"},{"message":"Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 42.1ms)","progname":null,"severity":1,"timestamp":1399270254480,"key":"6f5e404d5ca63846f27b576ad23263cf"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:10:55 +1000","progname":null,"severity":1,"timestamp":1399270255032,"key":"f0dc2b8299ff1e7ff70511e8b1f0f5dc"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270255043,"key":"44711edfd444632540cf1a9de4f749bc"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270255045,"key":"a77acc4190ea0d1e7b5d7f66081ea2ee"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270255047,"key":"1f347f19b0ac63d72203ba141c1cd303"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270255048,"key":"4ed8d54ff469d29a17f9b249015a4274"},{"message":" SQL (74.9ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270255126,"key":"2893c446a3bc62a0f5027b73998855c7"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270255132,"key":"0c0fcfef500575008d58ab1d40166261"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270255134,"key":"769e7ffba3353b83c95e31aea54c0792"},{"message":"Completed 200 OK in 106ms (Views: 0.1ms | ActiveRecord: 77.5ms)","progname":null,"severity":1,"timestamp":1399270255149,"key":"06e6173af47422623dd58f0cfd08b8a4"},{"message":"Started GET \"/categories.json\" for 127.0.0.1 at 2014-05-05 16:10:56 +1000","progname":null,"severity":1,"timestamp":1399270256114,"key":"f378af3d8672d49eeb0bcff7ecd36a60"},{"message":"Processing by CategoriesController#index as JSON","progname":null,"severity":1,"timestamp":1399270256125,"key":"5c485b37c141e6701acb7d3a5044c9fa"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270256127,"key":"5a977cfb3fd609ca63e21970e2b20065"},{"message":" CategoryFeaturedTopic Load (0.4ms) SELECT category_id, topic_id FROM \"category_featured_topics\" ORDER BY \"category_featured_topics\".\"rank\" ASC","progname":null,"severity":0,"timestamp":1399270256128,"key":"c9d864f91a624c500128bec3bb2d693a"},{"message":" Topic Load (2.4ms) SELECT \"topics\".* FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (14663, 14711, 5283, 12257, 12156, 14057, 14657, 12926, 3823, 13094, 12525, 14573, 7785, 14338, 4546, 14260, 5249, 1, 14735, 14719, 11835, 14615, 7407, 12529, 1184, 14117, 12455, 14258, 6547, 14669, 12878, 13966, 2349, 14741, 14651, 9077, 14573, 12530, 11613, 9768, 14047, 12712, 14133, 10175, 13986, 14740, 14748, 1127, 13964, 7210, 13315, 14110, 13815, 14726, 9100, 11832, 14603, 14732, 11497, 13688, 14727, 12710, 13736, 14713, 10938, 12650, 7780, 13979, 14514, 12455, 13819, 14694, 5751, 11403, 14254, 6587, 3102, 13003, 14729, 13111, 12201, 14724, 12511, 4924, 13421, 1420, 11763, 14728, 13847, 9621, 13767, 14041, 14677)","progname":null,"severity":0,"timestamp":1399270256133,"key":"bfe1469947582b4437927fdc0171e012"},{"message":" User Load (1.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3, 1, 2, 6268, 5351, 5160, 6755, 32, 6060, 9271, 1979, 8325, 9141, 1042, 9143, 8828, 184, 9536, 9660, 8492, 9410, 8434, 8810, 8222, 529, 6808, 9560, 8059, 761, 7915, 4228, 9448, 9579, 7292, 8607, 9395, 9370, 6626, 6586, 6548, 19, 9601, 3035, 9651, 1496, 5559, 6313, 4549, 9185)","progname":null,"severity":0,"timestamp":1399270256140,"key":"533a6e947bae56d6bcfe92fd1256a12f"},{"message":" (1.0ms) SELECT categories.id FROM \"categories\" LEFT OUTER JOIN \"category_featured_users\" ON \"category_featured_users\".\"category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"category_featured_users\".\"user_id\" LEFT OUTER JOIN \"categories\" \"subcategories_categories\" ON \"subcategories_categories\".\"parent_category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"topics\" ON \"topics\".\"id\" = \"subcategories_categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270256148,"key":"ff34ace0ef85728117437d4e56a72204"},{"message":" Category Load (0.7ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,18,18,18,18,19,19,19,19,19,20,23,23,25,25,25,25,25)) ORDER BY position asc, COALESCE(categories.posts_week, 0) DESC, COALESCE(categories.posts_month, 0) DESC, COALESCE(categories.posts_year, 0) DESC","progname":null,"severity":0,"timestamp":1399270256150,"key":"0c2b6420659795585c841d6a6a6bd62b"},{"message":" CategoryFeaturedUser Load (0.9ms) SELECT \"category_featured_users\".* FROM \"category_featured_users\" WHERE \"category_featured_users\".\"category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270256152,"key":"70fdb75b47d43f88d92eac699507ac07"},{"message":" User Load (2.1ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (761, 32, 19, 529, 7588, 3, 4308, 3035, 1, 6626, 1868, 8222, 8307, 9653, 9271, 2072, 8325, 9536, 9185, 9579, 6060, 8068, 8883, 9660, 9038, 6064, 8810, 5351, 2, 5682, 8492, 6613, 2291, 9560, 1496, 9395, 7915, 9490, 8851, 9601, 6548, 5048, 3415, 6808, 7229, 4263, 1995, 8018, 20, 9362, 184, 8607, 9329, 8458, 9143, 9448, 4228, 8828, 4220, 9370, 6586, 8437, 9410, 6313, 9222, 5559, 8824, -1, 4939)","progname":null,"severity":0,"timestamp":1399270256168,"key":"232abfa146cf74bef88fc4eccdff8776"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"parent_category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270256175,"key":"1c6e3d8f12cedc6a7ee758b8b205ea24"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12925, 11498, 12282, 13965, 14549, 13110, 12648)","progname":null,"severity":0,"timestamp":1399270256181,"key":"6692e94bd08f4dbfa9b64cedd13415ed"},{"message":" TopicUser Load (1.2ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14740, 14748, 13815, 9621, 14573, 5751, 14729, 14719, 13421, 6587, 14694, 7780, 11835, 14711, 14724, 4924, 14735, 4546, 3823, 13736, 14047, 12926, 13964, 13688, 14254, 1, 6547, 11497, 11763, 12156, 12650, 14041, 14258, 14603, 14657, 14669, 14728, 14727, 7210, 9100, 11403, 13966, 9768, 14663, 10175, 2349, 3102, 12529, 14057, 14110, 14133, 1127, 14260, 12257, 7407, 12712, 9077, 5283, 12710, 1184, 14117, 13315, 14741, 11613, 1420, 7785, 10938, 12201, 12511, 13094, 13986, 14338, 14615, 14651, 14677, 14713, 14732, 14726, 5249, 11832, 12455, 12878, 13111, 13767, 13979, 14514, 12525, 12530, 13003, 13819, 13847) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270256184,"key":"1aa9aac2220fd75fca17defcf94c412c"},{"message":" (0.2ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270256187,"key":"36a92e242fcbb1d653c048bb09fa6d0a"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270256188,"key":"59339f37345848102ab6f6dcfed45a26"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2]]","progname":null,"severity":0,"timestamp":1399270256189,"key":"8e9e8143d6e94246e46457d83efc67f0"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 389]]","progname":null,"severity":0,"timestamp":1399270256192,"key":"2501f22bcc73d940f18a03e83932337f"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 11]]","progname":null,"severity":0,"timestamp":1399270256195,"key":"d78b19cf42190158bbf35614b9505573"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 1026]]","progname":null,"severity":0,"timestamp":1399270256199,"key":"c6deee4d9a2014620b677e43ff230b78"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2628]]","progname":null,"severity":0,"timestamp":1399270256220,"key":"c813a62f77f3ebe2f09ade2165a086e5"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 28]]","progname":null,"severity":0,"timestamp":1399270256224,"key":"11e46c0f9c1968b109ec14f80611790f"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2629]]","progname":null,"severity":0,"timestamp":1399270256227,"key":"8a99ae9ed016967ccf700ae93ff24084"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2626]]","progname":null,"severity":0,"timestamp":1399270256229,"key":"8084961b5365a7bec27ec7a56f968467"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2828]]","progname":null,"severity":0,"timestamp":1399270256232,"key":"3b262be12207b2c847661acc72bb4932"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 24]]","progname":null,"severity":0,"timestamp":1399270256235,"key":"b8135077d76506f143d4502b1a5006ea"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 3038]]","progname":null,"severity":0,"timestamp":1399270256238,"key":"04c9c2b6b4862d0475336dce4681020c"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 25]]","progname":null,"severity":0,"timestamp":1399270256241,"key":"35edb06ac6226466b5e72d11ae9891a3"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5425]]","progname":null,"severity":0,"timestamp":1399270256243,"key":"791f6e0e174b4f4249bf505d3ffcb9ad"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5250]]","progname":null,"severity":0,"timestamp":1399270256246,"key":"d23fe939094ab13a5e54969ef6cdb4ae"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 13189]]","progname":null,"severity":0,"timestamp":1399270256249,"key":"8007c9cfd1c541da686bf1ad9e4cbe56"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 14747]]","progname":null,"severity":0,"timestamp":1399270256251,"key":"fe8f68cb9773efd45a8ba0120e8b3ee7"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 12104]]","progname":null,"severity":0,"timestamp":1399270256253,"key":"7855a4c2fe80ac02740e95facee907c6"},{"message":"Completed 200 OK in 149ms (Views: 0.1ms | ActiveRecord: 16.0ms)","progname":null,"severity":1,"timestamp":1399270256275,"key":"4684c2364dca2f024b179b9fad4a4da0"},{"message":"Started GET \"/top.json\" for 127.0.0.1 at 2014-05-05 16:10:56 +1000","progname":null,"severity":1,"timestamp":1399270256984,"key":"cf2b2eb30f1c339caf689505a052583a"},{"message":"Processing by ListController#top as JSON","progname":null,"severity":1,"timestamp":1399270256995,"key":"118f0aae922ab64c9f9e126ba49ed957"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270256997,"key":"e71799477d32e0df1a95695818d795f3"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270257004,"key":"2407c622a5cf99d4c226bc51c016659b"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270257006,"key":"55023c9a58c74b04b8cdade582e5f30b"},{"message":" Topic Load (14.1ms) SELECT \"topics\".* FROM \"topics\" INNER JOIN \"top_topics\" ON \"top_topics\".\"topic_id\" = \"topics\".\"id\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (top_topics.daily_score > 0) ORDER BY COALESCE(top_topics.daily_score, 0) DESC, topics.bumped_at DESC LIMIT 20","progname":null,"severity":0,"timestamp":1399270257027,"key":"948022ea99ee1102bdf16cec7ed8b87d"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17, 6, 2, 3, 1, 10, 4, 24, 9, 7)","progname":null,"severity":0,"timestamp":1399270257030,"key":"26b00c24aa85a9dea4aae5928eb2515e"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (389, 11, 24, 2, 2629, 25, 13110, 2628, 1026)","progname":null,"severity":0,"timestamp":1399270257032,"key":"5388bce4f3b9a86ae04de70b0b29e240"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (13222, 14735, 13924, 13551, 13345, 13808, 13202, 13216, 13127, 12439, 1184, 13638, 13979, 12597, 11893, 14719, 13394, 14732, 4924, 5151) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270257033,"key":"f4cabfb8294180170cb2cecb319f1abd"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (8222, 32, 8914, 6374, 8913, 32, 1868, 1, 8222, 32, 6626, 9215, 4549, 8856, 6626, 8963, 6626, 32, 1, 8, 8888, 8408, 8910, 32, 3, 3687, 1995, 6626, 6357, 7665, 8121, 1095, 2, 32, 8458, 3502, 1129, 8883, 6313, 4457, 6118, 9653, 8300, 8307, 5707, 32, 9072, 2072, 3, 471, 2664, 1, 676, 32, 2072, 7948, 1995)","progname":null,"severity":0,"timestamp":1399270257036,"key":"240c3e21a2e6f29d20666838c330e76f"},{"message":"Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 17.4ms)","progname":null,"severity":1,"timestamp":1399270257047,"key":"36a76659baff1bb8c5bf89cef0f0aa8f"},{"message":"Started GET \"/categories.json\" for 127.0.0.1 at 2014-05-05 16:10:58 +1000","progname":null,"severity":1,"timestamp":1399270258304,"key":"fd2f7218e40bf959c5520a9eb25bfda5"},{"message":"Processing by CategoriesController#index as JSON","progname":null,"severity":1,"timestamp":1399270258317,"key":"ee05e26cb7e2f6c622a0c81f7f1b2ed2"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270258319,"key":"515033f87b894e2c3ac29059ed6b48f8"},{"message":" CategoryFeaturedTopic Load (0.4ms) SELECT category_id, topic_id FROM \"category_featured_topics\" ORDER BY \"category_featured_topics\".\"rank\" ASC","progname":null,"severity":0,"timestamp":1399270258321,"key":"be7e222a639f2675a4b497d21579c9b9"},{"message":" Topic Load (2.3ms) SELECT \"topics\".* FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (14663, 14711, 5283, 12257, 12156, 14057, 14657, 12926, 3823, 13094, 12525, 14573, 7785, 14338, 4546, 14260, 5249, 1, 14735, 14719, 11835, 14615, 7407, 12529, 1184, 14117, 12455, 14258, 6547, 14669, 12878, 13966, 2349, 14741, 14651, 9077, 14573, 12530, 11613, 9768, 14047, 12712, 14133, 10175, 13986, 14740, 14748, 1127, 13964, 7210, 13315, 14110, 13815, 14726, 9100, 11832, 14603, 14732, 11497, 13688, 14727, 12710, 13736, 14713, 10938, 12650, 7780, 13979, 14514, 12455, 13819, 14694, 5751, 11403, 14254, 6587, 3102, 13003, 14729, 13111, 12201, 14724, 12511, 4924, 13421, 1420, 11763, 14728, 13847, 9621, 13767, 14041, 14677)","progname":null,"severity":0,"timestamp":1399270258326,"key":"36be68650ca542a35e94ca7b8e7a0adc"},{"message":" User Load (1.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3, 1, 2, 6268, 5351, 5160, 6755, 32, 6060, 9271, 1979, 8325, 9141, 1042, 9143, 8828, 184, 9536, 9660, 8492, 9410, 8434, 8810, 8222, 529, 6808, 9560, 8059, 761, 7915, 4228, 9448, 9579, 7292, 8607, 9395, 9370, 6626, 6586, 6548, 19, 9601, 3035, 9651, 1496, 5559, 6313, 4549, 9185)","progname":null,"severity":0,"timestamp":1399270258333,"key":"bff30be8e3fa884d52080d38063e6f9a"},{"message":" (0.8ms) SELECT categories.id FROM \"categories\" LEFT OUTER JOIN \"category_featured_users\" ON \"category_featured_users\".\"category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"category_featured_users\".\"user_id\" LEFT OUTER JOIN \"categories\" \"subcategories_categories\" ON \"subcategories_categories\".\"parent_category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"topics\" ON \"topics\".\"id\" = \"subcategories_categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270258340,"key":"a1e7020e4fd99b0072e546ca1d1b3ac3"},{"message":" Category Load (0.8ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,18,18,18,18,19,19,19,19,19,20,23,23,25,25,25,25,25)) ORDER BY position asc, COALESCE(categories.posts_week, 0) DESC, COALESCE(categories.posts_month, 0) DESC, COALESCE(categories.posts_year, 0) DESC","progname":null,"severity":0,"timestamp":1399270258342,"key":"cf7016083683b72d38f00b4fcfd68da7"},{"message":" CategoryFeaturedUser Load (0.8ms) SELECT \"category_featured_users\".* FROM \"category_featured_users\" WHERE \"category_featured_users\".\"category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270258345,"key":"139363289c76609b9744791e1f752d0a"},{"message":" User Load (1.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (761, 32, 19, 529, 7588, 3, 4308, 3035, 1, 6626, 1868, 8222, 8307, 9653, 9271, 2072, 8325, 9536, 9185, 9579, 6060, 8068, 8883, 9660, 9038, 6064, 8810, 5351, 2, 5682, 8492, 6613, 2291, 9560, 1496, 9395, 7915, 9490, 8851, 9601, 6548, 5048, 3415, 6808, 7229, 4263, 1995, 8018, 20, 9362, 184, 8607, 9329, 8458, 9143, 9448, 4228, 8828, 4220, 9370, 6586, 8437, 9410, 6313, 9222, 5559, 8824, -1, 4939)","progname":null,"severity":0,"timestamp":1399270258359,"key":"614c858f7946d6726ea49170a4218f2c"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"parent_category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270258365,"key":"525bc5cf096bbceb8dfab028dacda7b5"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12925, 11498, 12282, 13965, 14549, 13110, 12648)","progname":null,"severity":0,"timestamp":1399270258370,"key":"fee0173b75402b883503eca6ff3482c0"},{"message":" TopicUser Load (1.2ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14740, 14748, 13815, 9621, 14573, 5751, 14729, 14719, 13421, 6587, 14694, 7780, 11835, 14711, 14724, 4924, 14735, 4546, 3823, 13736, 14047, 12926, 13964, 13688, 14254, 1, 6547, 11497, 11763, 12156, 12650, 14041, 14258, 14603, 14657, 14669, 14728, 14727, 7210, 9100, 11403, 13966, 9768, 14663, 10175, 2349, 3102, 12529, 14057, 14110, 14133, 1127, 14260, 12257, 7407, 12712, 9077, 5283, 12710, 1184, 14117, 13315, 14741, 11613, 1420, 7785, 10938, 12201, 12511, 13094, 13986, 14338, 14615, 14651, 14677, 14713, 14732, 14726, 5249, 11832, 12455, 12878, 13111, 13767, 13979, 14514, 12525, 12530, 13003, 13819, 13847) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270258374,"key":"f0ed6d4fe084663b615a827bbb593b1b"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270258376,"key":"be7d32bb554e939b9c8a252979232459"},{"message":" Draft Load (0.2ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270258377,"key":"b0d5c6cbb75d5b603713f0a005e9e5e1"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2]]","progname":null,"severity":0,"timestamp":1399270258378,"key":"aa919e818d2fdbd474550ee6a0421a07"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 389]]","progname":null,"severity":0,"timestamp":1399270258381,"key":"ab254771ad5ba54f6f03cd02e56301a0"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 11]]","progname":null,"severity":0,"timestamp":1399270258384,"key":"95698a616b07233973e50cb6941aa72e"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 1026]]","progname":null,"severity":0,"timestamp":1399270258387,"key":"971252774f9ba7c398cc7e36c75478ca"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2628]]","progname":null,"severity":0,"timestamp":1399270258389,"key":"9ead963d67a83b9b5930b4ee71132abb"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 28]]","progname":null,"severity":0,"timestamp":1399270258393,"key":"6e7be386dcefacc355ca25e0eb94db24"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2629]]","progname":null,"severity":0,"timestamp":1399270258395,"key":"94f963832b55eb0d61062738b8f63076"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2626]]","progname":null,"severity":0,"timestamp":1399270258397,"key":"e93a07e07b172c61327aa70dd4a62c37"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2828]]","progname":null,"severity":0,"timestamp":1399270258400,"key":"a4f436a0c0dc8323d83f10f0035ade43"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 24]]","progname":null,"severity":0,"timestamp":1399270258402,"key":"568717c6e3cb4dc4c574447dd683c898"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 3038]]","progname":null,"severity":0,"timestamp":1399270258405,"key":"38a051e3a136f8501cc90335cb118246"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 25]]","progname":null,"severity":0,"timestamp":1399270258407,"key":"bb00433855b39b3eb481e9f61420429a"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5425]]","progname":null,"severity":0,"timestamp":1399270258409,"key":"cdf0d9917eb3fbdd28d47bd0232772a5"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5250]]","progname":null,"severity":0,"timestamp":1399270258412,"key":"23fed7b2b728305118149d25909775ee"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 13189]]","progname":null,"severity":0,"timestamp":1399270258414,"key":"aef65dda1d92541ddd7fd25871ef51a4"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 14747]]","progname":null,"severity":0,"timestamp":1399270258416,"key":"dc8b5dd125ed81b7793030b85f838775"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 12104]]","progname":null,"severity":0,"timestamp":1399270258417,"key":"db00320dfc4dd5b5881d1ff8ee2c5b1e"},{"message":"Completed 200 OK in 118ms (Views: 0.1ms | ActiveRecord: 15.1ms)","progname":null,"severity":1,"timestamp":1399270258435,"key":"624454feea38b520345f19aefee31be8"},{"message":"Started GET \"/starred.json\" for 127.0.0.1 at 2014-05-05 16:10:59 +1000","progname":null,"severity":1,"timestamp":1399270259261,"key":"f985ce4637316260ef15c47334c055fc"},{"message":"Processing by ListController#starred as JSON","progname":null,"severity":1,"timestamp":1399270259273,"key":"a72e45d64d34f60be3813f68d174e765"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270259275,"key":"5e0e5a5e58f43dc080a94a205a13268e"},{"message":" (0.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270259277,"key":"117272230dfc8e205a978cc3eecc7396"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270259278,"key":"1865ccf2d843dea95f489ddaf3a89e7d"},{"message":" Topic Load (20.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.starred) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270259300,"key":"b14dc4761bd92d92cc9fa9bda82e9500"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1, 2, 3, 17, 7, 11, 5, 6)","progname":null,"severity":0,"timestamp":1399270259303,"key":"c2f3fb650d8c3abe8072309a04bcebcc"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2, 11, 24, 1026, 2828, 28, 389)","progname":null,"severity":0,"timestamp":1399270259305,"key":"93843cc80f62d1bc3eb5b1c4d5abf643"},{"message":" TopicUser Load (0.6ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (12050, 13099, 3102, 11906, 13552, 3823, 12295, 6854, 9402, 6242, 7444, 11916, 7029, 6134, 7452, 8233, 8823, 331, 11777, 10630, 9683, 10620, 10117, 9932, 9203, 9586, 7401, 7034, 3238, 8831) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270259307,"key":"9d1b97e45236277dc102353f55b93da8"},{"message":" User Load (0.7ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6548, 32, 1, 8239, 3415, 2625, 6060, 7483, 5351, 8085, 1, 8077, 38, 8059, 3197, 3929, 901, 1, 1, 1, 8856, 8863, 32, 1, 8869, 19, 3695, 8810, 7179, 901, 6268, 1, 7948, 471, 3062, 8, 2, 8202, 32, 471, 2291, 7796, 6488, 2128, 4549, 8360, 1, 8024, 32, 2824, 761, 6626, 1995, 5311, 5636, 8184, 3681, 5351, 4939, 1, 32, 4217, 19, 6329, 1263, 284, 32, 2753, 2850, 3, 6211, 1995, 1, 32, 1, 5586, 6695, 4945, 7510, 5642, 19, 6018, 6330, 7009, 4457, 2625, 3, 6722, 5351, 32, 5271, 6607, 3987, 1, 2416, 2602, 1263, 5189, 32, 2595, 2989, 1216, 1, 2381, 1566, 5900, 19, 6329, 1, 6259, 5707)","progname":null,"severity":0,"timestamp":1399270259309,"key":"522ac632000f82d05daacf29278db7ec"},{"message":"Completed 200 OK in 54ms (Views: 0.1ms | ActiveRecord: 23.6ms)","progname":null,"severity":1,"timestamp":1399270259328,"key":"969a15d00c0de351729f304c67246eeb"},{"message":"Started GET \"/unread.json\" for 127.0.0.1 at 2014-05-05 16:10:59 +1000","progname":null,"severity":1,"timestamp":1399270259965,"key":"a5256d4f10259c7420ed0e3932d23abd"},{"message":"Processing by ListController#unread as JSON","progname":null,"severity":1,"timestamp":1399270259976,"key":"c70e64d85fe8a1ccb4b0aaad43dd6e20"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270259977,"key":"5d9f5f3b7466df6d6749ac0c5f14931b"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270259979,"key":"33740f939d7e7b1133577a98f665fba5"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270259980,"key":"824ea91836f7563d347bc4dbc5a7bcc9"},{"message":" Topic Load (52.9ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270260034,"key":"e32fd4bc35a41faa545ecc4b431334b4"},{"message":"Completed 200 OK in 59ms (Views: 0.1ms | ActiveRecord: 54.0ms)","progname":null,"severity":1,"timestamp":1399270260035,"key":"c1523c5f283be98fafc1e1bf69f32f98"},{"message":"Started GET \"/new.json\" for 127.0.0.1 at 2014-05-05 16:11:00 +1000","progname":null,"severity":1,"timestamp":1399270260598,"key":"1cce0cb19659cb1346b37c40bfdd1405"},{"message":"Processing by ListController#new as JSON","progname":null,"severity":1,"timestamp":1399270260609,"key":"077a9a77a731432a3efdbfb3d1476830"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270260611,"key":"697cee8986c42aef3ca7b7d6aa323a2e"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270260613,"key":"17d27a8e864be02a252e6436c6a80928"},{"message":" (1.1ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270260615,"key":"ab0df188e98127d048baa3cf6be15afb"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270260617,"key":"f0c784c332116a2ff48c1c7d84198f86"},{"message":" SQL (34.2ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270260655,"key":"06bc5881083c48f3984f769e72a692f0"},{"message":"Completed 200 OK in 46ms (Views: 0.1ms | ActiveRecord: 36.6ms)","progname":null,"severity":1,"timestamp":1399270260656,"key":"1bfcf3bf1017944da2e96a336f31b4f3"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:11:01 +1000","progname":null,"severity":1,"timestamp":1399270261194,"key":"4624789b7b01e7cd774a41f179d6dfd0"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270261206,"key":"be3ca393f888d894efc6441a36f65e57"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270261208,"key":"4a9ea5441b7778fd4c417a9a4ad9aad5"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270261210,"key":"33020a99618d0240d38e9b52e8908a26"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270261211,"key":"74550bd085da7fc494728964b978467a"},{"message":" SQL (83.7ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270261299,"key":"c03812fa60374c67f02e39e397a40364"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270261304,"key":"95c6123f4a1f550233bfc6e300a268af"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270261307,"key":"179d861e02b0e5df7e6ca963f400c033"},{"message":"Completed 200 OK in 115ms (Views: 0.1ms | ActiveRecord: 86.1ms)","progname":null,"severity":1,"timestamp":1399270261322,"key":"03390b4a673bcb2d1a09d265b9002871"},{"message":"Started GET \"/logs\" for 127.0.0.1 at 2014-05-05 16:11:10 +1000","progname":null,"severity":1,"timestamp":1399270270948,"key":"4f5996d87a1d9f1d44b61b09b110cec6"},{"message":"Started GET \"/logs/stylesheets/app.css\" for 127.0.0.1 at 2014-05-05 16:11:10 +1000","progname":null,"severity":1,"timestamp":1399270270990,"key":"dd25ef005b33b643dd0bb261017145f9"},{"message":"Started GET \"/logs/javascript/external/moment.min.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271000,"key":"f765302884ce67db5b95032ed812b361"},{"message":"Started GET \"/logs/javascript/external/jquery.min.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271011,"key":"b4d3ab91ec31e6171bfebc659299e43a"},{"message":"Started GET \"/logs/javascript/external/handlebars.min.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271023,"key":"0b0b105eb64742b47eaef11ff18551aa"},{"message":"Started GET \"/logs/javascript/external/lodash.min.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271034,"key":"bf385aaae349e44aa5d9074449156b1e"},{"message":"Started GET \"/logs/javascript/external/ember.min.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271045,"key":"4089b326be7e4535443a75cebe053b18"},{"message":"Started GET \"/logs/javascript/app.js\" for 127.0.0.1 at 2014-05-05 16:11:11 +1000","progname":null,"severity":1,"timestamp":1399270271056,"key":"d3a0d47a3f2408706f0c07870152fbd1"},{"message":" UserVisit Load (0.9ms) SELECT \"user_visits\".* FROM \"user_visits\" WHERE \"user_visits\".\"user_id\" = $1 AND \"user_visits\".\"visited_at\" = '2014-05-05' ORDER BY \"user_visits\".\"id\" ASC LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270298792,"key":"a8873a74197fbb7155b9235454e1f4bc"},{"message":" SQL (0.4ms) UPDATE \"users\" SET \"last_seen_at\" = '2014-05-05 06:11:38.782880' WHERE \"users\".\"id\" = 1","progname":null,"severity":0,"timestamp":1399270298794,"key":"d8d1a2eadb8f0bfb3b91185908b2f9e4"},{"message":"Started GET \"/\" for 127.0.0.1 at 2014-05-05 16:20:25 +1000","progname":null,"severity":1,"timestamp":1399270825996,"key":"940a368c67ae231dcb5115bb1c221327"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270826009,"key":"5d167ec6c89c87a3cdcac78b8d7f7ee0"},{"message":"Processing by ListController#latest as HTML","progname":null,"severity":1,"timestamp":1399270826010,"key":"63f35916f54e1778c164b428e2fb5926"},{"message":" (0.2ms) SELECT \"groups\".\"name\" FROM \"groups\"","progname":null,"severity":0,"timestamp":1399270826012,"key":"12f514e477670508690e0db040b19830"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270826013,"key":"765b417ffb73e752f84c5c4bc06ea137"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,19,20,23,25)) ORDER BY \"categories\".\"position\" ASC","progname":null,"severity":0,"timestamp":1399270826014,"key":"bf8ff7da434a9b61557bd910c00e26c4"},{"message":" Topic Load (0.6ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12104, 3038, 13189, 12925, 11, 5250, 2628, 13965, 1026, 14549, 2626, 2, 11498, 5425, 25, 2828, 28, 24, 13110, 12282, 389, 2629, 12648, 14747)","progname":null,"severity":0,"timestamp":1399270826017,"key":"608438dec51c668e7ccecdb988ad8bab"},{"message":" (0.3ms) SELECT \"categories\".\"id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270826018,"key":"e9ec581405d7f962dfbd159e33a2b101"},{"message":" PostActionType Load (0.4ms) SELECT \"post_action_types\".* FROM \"post_action_types\" ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270826020,"key":"54045c13a588d300391433dcfffcc808"},{"message":" PostActionType Load (0.3ms) SELECT \"post_action_types\".* FROM \"post_action_types\" WHERE \"post_action_types\".\"name_key\" IN ('inappropriate', 'spam', 'notify_moderators') ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270826022,"key":"8f5840b117bfdd085c49cb2116c7db60"},{"message":" SiteContent Load (0.3ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'top' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270826025,"key":"8801d1fcbbe77104c7357710ec15a54b"},{"message":" SiteContent Load (0.2ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'bottom' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270826027,"key":"f3064d421da1981cc392500f46f2e292"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, notification_type AS notification_type FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (id > 84737 and read = false) GROUP BY notification_type [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270826028,"key":"43ef6d4d8fe3a50906774d78271f75dc"},{"message":" (2.9ms) SELECT COUNT(*) FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (read = false AND notification_type = 6) [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270826032,"key":"ce6048175ef32a4c557b266c4e99ac5f"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270826033,"key":"664a32a1346e26ec2e76325b74a184a4"},{"message":" (0.8ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"user_id\" = $1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270826035,"key":"f4d166ceb1129ff724a0e8f70c55c657"},{"message":" (3.6ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270826039,"key":"7aafa09cc958c519c9bcc488e85f1765"},{"message":" CACHE (0.0ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270826040,"key":"be01701a132a244d417dcce8c765d88f"},{"message":" (34.9ms) SELECT u.id AS user_id,\n topics.id AS topic_id,\n topics.created_at,\n highest_post_number,\n last_read_post_number,\n c.name AS category_name,\n tu.notification_level\n FROM users u\n INNER JOIN user_stats AS us ON us.user_id = u.id\n FULL OUTER JOIN topics ON 1=1\n LEFT JOIN topic_users tu ON tu.topic_id = topics.id AND tu.user_id = u.id\n LEFT JOIN categories c ON c.id = topics.category_id\n WHERE u.id IN (1) AND\n topics.archetype <> 'private_message' AND\n ((tu.last_read_post_number < topics.highest_post_number AND COALESCE(tu.notification_level, 1) >= 2) OR (topics.created_at >= GREATEST(CASE\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -1 THEN u.created_at\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -2 THEN COALESCE(u.previous_visit_at,u.created_at)\n ELSE ('2014-05-05 06:20:26.041363'::timestamp - INTERVAL '1 MINUTE' * COALESCE(u.new_topic_duration_minutes, 2880))\n END, us.new_since) AND tu.last_read_post_number IS NULL AND COALESCE(tu.notification_level, 2) >= 2)) AND\n (topics.visible OR u.admin OR u.moderator) AND\n topics.deleted_at IS NULL AND\n ( category_id IS NULL OR NOT c.read_restricted OR category_id IN (\n SELECT c2.id FROM categories c2\n JOIN category_groups cg ON cg.category_id = c2.id\n JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id\n WHERE c2.read_restricted )\n )\n AND NOT EXISTS( SELECT 1 FROM category_users cu\n WHERE cu.user_id = u.id AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0)\n\n ORDER BY topics.bumped_at DESC LIMIT 500","progname":null,"severity":0,"timestamp":1399270826076,"key":"bbb15e985e49209709af9cfa07c1fd22"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270826078,"key":"d8fe1bf9d797d8b06b76f1f87f5be6e1"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270826079,"key":"76d899d7414f03f01d39f970b359c724"},{"message":" SQL (73.4ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270826157,"key":"b3965543c458710adc475c1f6bbf1d0c"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270826163,"key":"1ddab7dc7a6fa039847963156c099f5b"},{"message":" User Load (0.8ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270826166,"key":"eccba21f23842ba51dc06a8d628036ac"},{"message":" Rendered list/list.erb within layouts/application (1.6ms)","progname":null,"severity":1,"timestamp":1399270826187,"key":"e0784fa2386d94c82e9b89943cddca13"},{"message":" Rendered common/_special_font_face.html.erb (0.2ms)","progname":null,"severity":1,"timestamp":1399270826264,"key":"b92e7704f03a882cf92d41c4f846c0a5"},{"message":" Rendered common/_discourse_stylesheet.html.erb (1.0ms)","progname":null,"severity":1,"timestamp":1399270826266,"key":"5a8b5891f0b828bed80f8eeb80d3051f"},{"message":" SiteContent Load (0.3ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'head' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270826268,"key":"905452986057bc43881b6f54d3b2b0b9"},{"message":" Rendered common/_discourse_javascript.html.erb (3.7ms)","progname":null,"severity":1,"timestamp":1399270826273,"key":"6920d831a9b018c4f1588b91863defef"},{"message":"Completed 200 OK in 262ms (Views: 88.2ms | ActiveRecord: 121.7ms)","progname":null,"severity":1,"timestamp":1399270826273,"key":"35e33f7836000377bbd113056623d56a"},{"message":"Started GET \"/top.json\" for 127.0.0.1 at 2014-05-05 16:20:28 +1000","progname":null,"severity":1,"timestamp":1399270828637,"key":"9c2ca46ccd77366084c845f36d242b18"},{"message":"Processing by ListController#top as JSON","progname":null,"severity":1,"timestamp":1399270828647,"key":"433649d30ad38e6bebcfdc4cc930961a"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270828649,"key":"b944b0aefc27849d0e4dcf05e08916cb"},{"message":" (0.6ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270828652,"key":"ed763a3977762647b001f14080c0d354"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270828653,"key":"a170e8cbcf51bb0b8c23340ac93703b2"},{"message":" Topic Load (10.1ms) SELECT \"topics\".* FROM \"topics\" INNER JOIN \"top_topics\" ON \"top_topics\".\"topic_id\" = \"topics\".\"id\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (top_topics.daily_score > 0) ORDER BY COALESCE(top_topics.daily_score, 0) DESC, topics.bumped_at DESC LIMIT 20","progname":null,"severity":0,"timestamp":1399270828665,"key":"4e8513eed4a8267280385fb3270dfab4"},{"message":" Category Load (0.9ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17, 6, 2, 3, 1, 10, 4, 24, 9, 7)","progname":null,"severity":0,"timestamp":1399270828669,"key":"5fadad34d8f86b4b53e2987d245a0280"},{"message":" Topic Load (0.6ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (389, 11, 24, 2, 2629, 25, 13110, 2628, 1026)","progname":null,"severity":0,"timestamp":1399270828672,"key":"a1219621f3090d0d2336fc303dad880b"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (13222, 14735, 13924, 13551, 13345, 13808, 13202, 13216, 13127, 12439, 1184, 13638, 13979, 12597, 11893, 14719, 13394, 14732, 4924, 5151) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270828674,"key":"8b96b17fa3248c8649defacf607ecb55"},{"message":" User Load (0.8ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (8222, 32, 8914, 6374, 8913, 32, 1868, 1, 8222, 32, 6626, 9215, 4549, 8856, 6626, 8963, 6626, 32, 1, 8, 8888, 8408, 8910, 32, 3, 3687, 1995, 6626, 6357, 7665, 8121, 1095, 2, 32, 8458, 3502, 1129, 8883, 6313, 4457, 6118, 9653, 8300, 8307, 5707, 32, 9072, 2072, 3, 471, 2664, 1, 676, 32, 2072, 7948, 1995)","progname":null,"severity":0,"timestamp":1399270828677,"key":"e879b1f3dc148c2a6d832951c28eed5d"},{"message":"Completed 200 OK in 43ms (Views: 0.1ms | ActiveRecord: 14.4ms)","progname":null,"severity":1,"timestamp":1399270828691,"key":"9ddb6a4b0e7510b5b4525cd0957019ef"},{"message":"Started GET \"/categories.json\" for 127.0.0.1 at 2014-05-05 16:20:29 +1000","progname":null,"severity":1,"timestamp":1399270829517,"key":"992d7b220dd55a90cc2f0ac881e09cb7"},{"message":"Processing by CategoriesController#index as JSON","progname":null,"severity":1,"timestamp":1399270829528,"key":"2326071d36f1828378542dc010ef8634"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270829530,"key":"55b36731b9d29291aef8adf47ed6eac8"},{"message":" CategoryFeaturedTopic Load (0.4ms) SELECT category_id, topic_id FROM \"category_featured_topics\" ORDER BY \"category_featured_topics\".\"rank\" ASC","progname":null,"severity":0,"timestamp":1399270829531,"key":"25f31a4018942829e5a130e69e68f0c4"},{"message":" Topic Load (2.1ms) SELECT \"topics\".* FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (14663, 14711, 5283, 12257, 12156, 14057, 14657, 12926, 3823, 13094, 12525, 14573, 7785, 14338, 4546, 14260, 5249, 1, 14735, 14719, 11835, 14615, 7407, 12529, 1184, 14117, 12455, 14258, 6547, 14669, 12878, 13966, 2349, 14741, 14651, 9077, 14573, 12530, 11613, 9768, 14047, 12712, 14133, 10175, 13986, 14740, 14748, 1127, 13964, 7210, 13315, 14110, 13815, 14726, 9100, 11832, 14603, 14732, 11497, 13688, 14727, 12710, 13736, 14713, 10938, 12650, 7780, 13979, 14514, 12455, 13819, 14694, 5751, 11403, 14254, 6587, 3102, 13003, 14729, 13111, 12201, 14724, 12511, 4924, 13421, 1420, 11763, 14728, 13847, 9621, 13767, 14041, 14677)","progname":null,"severity":0,"timestamp":1399270829536,"key":"b7301a1ab5eb4ffb9f5d8897a2485230"},{"message":" User Load (1.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3, 1, 2, 6268, 5351, 5160, 6755, 32, 6060, 9271, 1979, 8325, 9141, 1042, 9143, 8828, 184, 9536, 9660, 8492, 9410, 8434, 8810, 8222, 529, 6808, 9560, 8059, 761, 7915, 4228, 9448, 9579, 7292, 8607, 9395, 9370, 6626, 6586, 6548, 19, 9601, 3035, 9651, 1496, 5559, 6313, 4549, 9185)","progname":null,"severity":0,"timestamp":1399270829543,"key":"123d56a78762b49ffad6b9bae1726279"},{"message":" (0.8ms) SELECT categories.id FROM \"categories\" LEFT OUTER JOIN \"category_featured_users\" ON \"category_featured_users\".\"category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"category_featured_users\".\"user_id\" LEFT OUTER JOIN \"categories\" \"subcategories_categories\" ON \"subcategories_categories\".\"parent_category_id\" = \"categories\".\"id\" LEFT OUTER JOIN \"topics\" ON \"topics\".\"id\" = \"subcategories_categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270829549,"key":"14a29826b29496b9cff9284c31ca93c7"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,18,18,18,18,19,19,19,19,19,20,23,23,25,25,25,25,25)) ORDER BY position asc, COALESCE(categories.posts_week, 0) DESC, COALESCE(categories.posts_month, 0) DESC, COALESCE(categories.posts_year, 0) DESC","progname":null,"severity":0,"timestamp":1399270829551,"key":"0a67903b30e2a0be2e7268c0d9a63fe6"},{"message":" CategoryFeaturedUser Load (0.5ms) SELECT \"category_featured_users\".* FROM \"category_featured_users\" WHERE \"category_featured_users\".\"category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270829553,"key":"e14e0ead448c6953e3860acdf65072a9"},{"message":" User Load (1.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (761, 32, 19, 529, 7588, 3, 4308, 3035, 1, 6626, 1868, 8222, 8307, 9653, 9271, 2072, 8325, 9536, 9185, 9579, 6060, 8068, 8883, 9660, 9038, 6064, 8810, 5351, 2, 5682, 8492, 6613, 2291, 9560, 1496, 9395, 7915, 9490, 8851, 9601, 6548, 5048, 3415, 6808, 7229, 4263, 1995, 8018, 20, 9362, 184, 8607, 9329, 8458, 9143, 9448, 4228, 8828, 4220, 9370, 6586, 8437, 9410, 6313, 9222, 5559, 8824, -1, 4939)","progname":null,"severity":0,"timestamp":1399270829565,"key":"45db76c3f9dceaad938f92dc91ea37e3"},{"message":" Category Load (0.4ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"parent_category_id\" IN (18, 1, 6, 2, 7, 9, 17, 5, 10, 27, 8, 22, 11, 21, 26, 3, 19, 12, 4, 14, 24, 13, 25, 23, 29, 20)","progname":null,"severity":0,"timestamp":1399270829571,"key":"5264030e13de3c93f917df7702fec491"},{"message":" Topic Load (0.5ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12925, 11498, 12282, 13965, 14549, 13110, 12648)","progname":null,"severity":0,"timestamp":1399270829576,"key":"2cde80e2099a058374c6a525b6dc4313"},{"message":" TopicUser Load (1.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14740, 14748, 13815, 9621, 14573, 5751, 14729, 14719, 13421, 6587, 14694, 7780, 11835, 14711, 14724, 4924, 14735, 4546, 3823, 13736, 14047, 12926, 13964, 13688, 14254, 1, 6547, 11497, 11763, 12156, 12650, 14041, 14258, 14603, 14657, 14669, 14728, 14727, 7210, 9100, 11403, 13966, 9768, 14663, 10175, 2349, 3102, 12529, 14057, 14110, 14133, 1127, 14260, 12257, 7407, 12712, 9077, 5283, 12710, 1184, 14117, 13315, 14741, 11613, 1420, 7785, 10938, 12201, 12511, 13094, 13986, 14338, 14615, 14651, 14677, 14713, 14732, 14726, 5249, 11832, 12455, 12878, 13111, 13767, 13979, 14514, 12525, 12530, 13003, 13819, 13847) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270829580,"key":"7b6546691963789e3bf07f744ca50f32"},{"message":" (0.2ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270829583,"key":"baafb980b050cfd97dda00bb28e0dc48"},{"message":" Draft Load (0.2ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270829583,"key":"a7c10862c972473f6a968b95fb363ee2"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2]]","progname":null,"severity":0,"timestamp":1399270829585,"key":"cc6d3ceada9de6eb80a769b11e83665d"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 389]]","progname":null,"severity":0,"timestamp":1399270829587,"key":"11f46b29a1c3b67b55587af0a3e3dadb"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 11]]","progname":null,"severity":0,"timestamp":1399270829590,"key":"abffcf64410ab8109fb4991caf408fe0"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 1026]]","progname":null,"severity":0,"timestamp":1399270829593,"key":"442d78f8b265bb64568cba48402e84c8"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2628]]","progname":null,"severity":0,"timestamp":1399270829595,"key":"1438e6e35f0ff84c87be24338cff6517"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 28]]","progname":null,"severity":0,"timestamp":1399270829599,"key":"832eef23637b63676ab709418c99ee2c"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2629]]","progname":null,"severity":0,"timestamp":1399270829602,"key":"e50a8d0d7daf907073178e9b74b1e5fa"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2626]]","progname":null,"severity":0,"timestamp":1399270829604,"key":"d2f2988c4dd3a182be8e88f2a7fc20ea"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 2828]]","progname":null,"severity":0,"timestamp":1399270829606,"key":"fdc31f875da7f96cf3098a22d756edf4"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 24]]","progname":null,"severity":0,"timestamp":1399270829609,"key":"3339f96710ffa4fead61c4d28121a249"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 3038]]","progname":null,"severity":0,"timestamp":1399270829612,"key":"576257dc3bcc0f0a597495e59e5ddd19"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 25]]","progname":null,"severity":0,"timestamp":1399270829614,"key":"143f9de21d7c6d5badcb4a19b2e5f2c3"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5425]]","progname":null,"severity":0,"timestamp":1399270829617,"key":"afe1dec75422aa603aa10d1d70362c93"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 5250]]","progname":null,"severity":0,"timestamp":1399270829619,"key":"1cf5ed1c27fa0f641a38006ffdd4c9d3"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 13189]]","progname":null,"severity":0,"timestamp":1399270829622,"key":"e356b0a1d11b720378336dfad99c5a13"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 14747]]","progname":null,"severity":0,"timestamp":1399270829624,"key":"096199dc5da5ab9e1eb9fc7017523c2b"},{"message":" Topic Load (0.2ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" = $1 LIMIT 1 [[\"id\", 12104]]","progname":null,"severity":0,"timestamp":1399270829626,"key":"b789170239d0df3190c8f3551a4ae1d5"},{"message":"Completed 200 OK in 117ms (Views: 0.1ms | ActiveRecord: 14.8ms)","progname":null,"severity":1,"timestamp":1399270829646,"key":"1a1cdc9cb6994a23934aa9450f28010f"},{"message":"Started GET \"/starred.json\" for 127.0.0.1 at 2014-05-05 16:20:30 +1000","progname":null,"severity":1,"timestamp":1399270830581,"key":"fe0a60687b92bbd907e9d99cb542b6eb"},{"message":"Processing by ListController#starred as JSON","progname":null,"severity":1,"timestamp":1399270830593,"key":"6fb0593ac75503b766fea8ab76a1f1cc"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270830594,"key":"83f698d7d00ae3d1724359b44e8b20d0"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270830596,"key":"5dff24155aaf4928b8a506f48aebfad3"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270830597,"key":"86f6a5cf12ee2025ac0275cfb409c1dd"},{"message":" Topic Load (21.3ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.starred) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270830620,"key":"89f5bfc5e5e1d30fdd363dcc45f99368"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1, 2, 3, 17, 7, 11, 5, 6)","progname":null,"severity":0,"timestamp":1399270830623,"key":"1099392e2c49ee9b774e5e058d415060"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2, 11, 24, 1026, 2828, 28, 389)","progname":null,"severity":0,"timestamp":1399270830625,"key":"be361822146258a621f0cc994bdbbd17"},{"message":" TopicUser Load (0.6ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (12050, 13099, 3102, 11906, 13552, 3823, 12295, 6854, 9402, 6242, 7444, 11916, 7029, 6134, 7452, 8233, 8823, 331, 11777, 10630, 9683, 10620, 10117, 9932, 9203, 9586, 7401, 7034, 3238, 8831) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270830626,"key":"bc495763b70c4d64ff12238d8c4ff710"},{"message":" User Load (1.0ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6548, 32, 1, 8239, 3415, 2625, 6060, 7483, 5351, 8085, 1, 8077, 38, 8059, 3197, 3929, 901, 1, 1, 1, 8856, 8863, 32, 1, 8869, 19, 3695, 8810, 7179, 901, 6268, 1, 7948, 471, 3062, 8, 2, 8202, 32, 471, 2291, 7796, 6488, 2128, 4549, 8360, 1, 8024, 32, 2824, 761, 6626, 1995, 5311, 5636, 8184, 3681, 5351, 4939, 1, 32, 4217, 19, 6329, 1263, 284, 32, 2753, 2850, 3, 6211, 1995, 1, 32, 1, 5586, 6695, 4945, 7510, 5642, 19, 6018, 6330, 7009, 4457, 2625, 3, 6722, 5351, 32, 5271, 6607, 3987, 1, 2416, 2602, 1263, 5189, 32, 2595, 2989, 1216, 1, 2381, 1566, 5900, 19, 6329, 1, 6259, 5707)","progname":null,"severity":0,"timestamp":1399270830630,"key":"6a3a24da53a82e82ecb74465281193c6"},{"message":"Completed 200 OK in 56ms (Views: 0.1ms | ActiveRecord: 24.9ms)","progname":null,"severity":1,"timestamp":1399270830649,"key":"6f40b547e986e1c37d9e522d2088989c"},{"message":"Started GET \"/unread.json\" for 127.0.0.1 at 2014-05-05 16:20:31 +1000","progname":null,"severity":1,"timestamp":1399270831300,"key":"761213c1899cf49e4587097edbd13b43"},{"message":"Processing by ListController#unread as JSON","progname":null,"severity":1,"timestamp":1399270831311,"key":"1446b0d30eb9ebb4cb702cce70c787ad"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270831313,"key":"5776ba5f72e346c4288641b265fe7ddd"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270831315,"key":"9975d81a32f3f7342b7339debeec07a2"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270831316,"key":"31b794e83e6897662545b29fbe9f072e"},{"message":" Topic Load (49.2ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270831367,"key":"387985512701501f8605fc376e8a68e1"},{"message":"Completed 200 OK in 56ms (Views: 0.1ms | ActiveRecord: 50.6ms)","progname":null,"severity":1,"timestamp":1399270831368,"key":"2f1bb7009915f563a9c1376af0b8877a"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:20:32 +1000","progname":null,"severity":1,"timestamp":1399270832244,"key":"0a145df69b6528b11db4c797245ffe48"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270832256,"key":"814402b8077251cfb35bb83ecb0e4134"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270832258,"key":"3d9ae2bffd8ffe2da287e6568ade1276"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270832260,"key":"13a43382985e48122a1fb64852ba7beb"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270832261,"key":"810b22429e177c816424acaed9ef0971"},{"message":" SQL (79.9ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270832346,"key":"4301292bb5014cc5f0b7266d3c41095a"},{"message":" TopicUser Load (0.9ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270832352,"key":"a8d6720110a025f140bc98dc3e29594a"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270832355,"key":"fc578266f394ef5ad34c1ca9edf28b1b"},{"message":"Completed 200 OK in 116ms (Views: 0.1ms | ActiveRecord: 82.5ms)","progname":null,"severity":1,"timestamp":1399270832373,"key":"9d99427de131759bef0795d34d86fc9f"},{"message":"Started GET \"/t/14741/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:33 +1000","progname":null,"severity":1,"timestamp":1399270833683,"key":"018b2a15b537f461785eb71b8d3c3d9f"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270833696,"key":"c74b8197f85681e2a7da51192caf025d"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"14741\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270833697,"key":"3d38ceae2706d6b993552586483b57f5"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270833699,"key":"34931b82cf0dd4a33fb37aa75f2517bd"},{"message":" Topic Load (0.8ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 14741 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270833702,"key":"d4f9cdda5de238a68abba60bd08e63c9"},{"message":" Category Load (0.6ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270833704,"key":"989be6dc332a88f75d9e3efab76516ff"},{"message":" (1.5ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833709,"key":"55390b472b9edeb53e42d54bd4709e1c"},{"message":" (0.6ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833711,"key":"3d65b10ef2aba5c373caca90d41b1b30"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_14741'","progname":null,"severity":0,"timestamp":1399270833713,"key":"e9da51177e7603d55769230210757df1"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_14741' LIMIT 1","progname":null,"severity":0,"timestamp":1399270833715,"key":"8aa9b5643b87df623c1f16b42f9da69f"},{"message":" Post Load (0.6ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (48973) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270833716,"key":"1a7d76cde9459e0f477d572a51bd3f7e"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9271)","progname":null,"severity":0,"timestamp":1399270833717,"key":"1a7445b70df8ce17d9e351a15a8c7d40"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270833719,"key":"0dca0fe44d3f6865baeaef5ef0564eda"},{"message":" (3.5ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (48973)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270833724,"key":"b0477cd3fdb1b47e6b2d651420c2a380"},{"message":" TopicUser Load (0.7ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833727,"key":"ca096f218b39ebb3c80c67c985f597d8"},{"message":" (0.4ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (48973) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270833729,"key":"c97fa1a7ec31759db22c8f1f4a757d2d"},{"message":" (0.5ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 14741 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1)","progname":null,"severity":0,"timestamp":1399270833730,"key":"877c63577cb09e6b721225def786593e"},{"message":" PostAction Load (0.6ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (48973) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270833732,"key":"6d55f2d08dafe3741e6d08e03b5fcf61"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9271]]","progname":null,"severity":0,"timestamp":1399270833734,"key":"c669a92343f512ba658b64e73b6f8510"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9271]]","progname":null,"severity":0,"timestamp":1399270833735,"key":"54f0836e0f03947383a2ef2d569bedae"},{"message":" User Load (1.0ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833738,"key":"8bdf4aab1c8ee07c4769ade142b87201"},{"message":" Group Load (0.7ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833741,"key":"9dbace3ff52ef73e6b3776715eda0da6"},{"message":" (0.6ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 14741 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270833743,"key":"b4c08f8892eaaa85e519dce21f34dda2"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9271)","progname":null,"severity":0,"timestamp":1399270833744,"key":"a7ee36db8ad56cbb0cd1c0f29105776f"},{"message":" (0.3ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270833745,"key":"b75b8b11dfa39639c0c089aa6e864172"},{"message":" Topic Load (64.0ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270833811,"key":"018c21f299610cc6e788d4e9af4717f0"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270833813,"key":"e87edd51e530b5d9fddf4f469cc78618"},{"message":" SQL (35.5ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270833852,"key":"52e7cb8e64fd295795f3fc10620823ea"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270833854,"key":"686b902e28d13cd67bacb6eb799ef1f7"},{"message":" Topic Load (9.4ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (14741,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (14741)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270833865,"key":"53c73a208742781bcbf3afcf0b468b14"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270833866,"key":"ac005d9ee41718e9f8d059829b722a27"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (1026)","progname":null,"severity":0,"timestamp":1399270833868,"key":"cf911386f61b224d403c7439d8b3fc1a"},{"message":" TopicUser Load (2.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (7955, 9158, 14336, 14257, 9078, 2664, 7019) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270833871,"key":"ba22c6819729c5ce141fd7f94dc8346b"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1496, 19, 4945, 2072, 32, 6533, 1, 6626, 8989, 9353, 6626, 5199, 2306, 1274, 2006, 2310, 811, 1995, 2702)","progname":null,"severity":0,"timestamp":1399270833873,"key":"e74b70fa718446b2baa61d6d0e88dbf2"},{"message":" (1.6ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 14741) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270833891,"key":"f17ca171ac0bc64c5a5cca2374e7c498"},{"message":" Category Exists (0.3ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 14741 LIMIT 1","progname":null,"severity":0,"timestamp":1399270833892,"key":"4d6e004e6235881b83ad3ee9bafeee93"},{"message":" (0.5ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 14741]]","progname":null,"severity":0,"timestamp":1399270833893,"key":"0506f4055300ece4df0a5022a8e9b99b"},{"message":"Completed 200 OK in 200ms (Views: 0.1ms | ActiveRecord: 133.3ms)","progname":null,"severity":1,"timestamp":1399270833897,"key":"e3b1b0ef77e39507139a3f45e71a0cd1"},{"message":"Started GET \"/t/9158/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:35 +1000","progname":null,"severity":1,"timestamp":1399270835597,"key":"dde7cd3e4d488c7874c26ddc3b2cadbc"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270835613,"key":"7aa26573de7e8a4c119a3addada15b6e"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"9158\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270835614,"key":"a3bd4b000dca707eeaabe3f9f52c3b31"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270835616,"key":"28bafe89990f98cca6104856df4af4d4"},{"message":" Topic Load (0.9ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 9158 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270835618,"key":"bd8a4f5b153f700eabd31d1d2ea55a38"},{"message":" Category Load (0.4ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270835620,"key":"ab91e93ad8eba03ae6a5e7c3af10c28e"},{"message":" (0.5ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835622,"key":"3d27da731fd66a8f22edd8ddc763949a"},{"message":" (0.7ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835623,"key":"589e774f5099518a046664d5a4f3f1f8"},{"message":" (7.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_9158'","progname":null,"severity":0,"timestamp":1399270835633,"key":"fa49df342ea9ca93089b01788ad3f326"},{"message":" Draft Load (1.2ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_9158' LIMIT 1","progname":null,"severity":0,"timestamp":1399270835638,"key":"a2e599dc32b2b3ac51da9bbed1e89d73"},{"message":" Post Load (2.1ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (26245, 26274, 26280, 26281, 26285, 26327) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270835640,"key":"36303c991284c313630a66a5b96cca4f"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (4945, 32, 6533, 1, 2072)","progname":null,"severity":0,"timestamp":1399270835642,"key":"54bc36ee3ed257ac2a873383248630a1"},{"message":" User Load (0.3ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (32, 4945)","progname":null,"severity":0,"timestamp":1399270835644,"key":"090aa4cbae873f6827c3160010eff39b"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270835645,"key":"b9d7b4b0307a038b53ce802629dd95ee"},{"message":" (2.8ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (26245,26274,26280,26281,26285,26327)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270835649,"key":"a1f42a5c9b8d0e8a32eb7416ace36d23"},{"message":" TopicUser Load (0.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835650,"key":"ee13a5c5794c74bf721f9a9ec6da24cc"},{"message":" (0.4ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (26245, 26274, 26280, 26281, 26285, 26327) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270835651,"key":"9926efadc1a07d7481deeccada50d153"},{"message":" (2.3ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 9158 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1, 2, 3, 4, 5, 6)","progname":null,"severity":0,"timestamp":1399270835654,"key":"d2b5e72f42df337ae57b74b76ce6d0ff"},{"message":" PostAction Load (1.1ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (26245, 26274, 26280, 26281, 26285, 26327) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270835656,"key":"50596791efae116c617f94909d2174a9"},{"message":" (0.3ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270835659,"key":"4088392e0b46ed009c223af0eb7b3a53"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270835661,"key":"29db41426aee53a16209669a50ca9fc3"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 4945]]","progname":null,"severity":0,"timestamp":1399270835664,"key":"4ec926cc6d6a78b9795f09c5131b9ecc"},{"message":" User Load (0.3ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 2072]]","progname":null,"severity":0,"timestamp":1399270835664,"key":"9da7692104869ed4e922d7fd3f2f09ee"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835666,"key":"cfbf866ce5cbe0525c34a254d477720e"},{"message":" Group Load (0.3ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835668,"key":"510917175c0b16830bc8180dc8b38c91"},{"message":" (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 9158 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270835669,"key":"8331828b5cae4740f65c99f3c8bc3975"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (4945, 1, 32, 6533, 2072)","progname":null,"severity":0,"timestamp":1399270835670,"key":"d0ffda5fd73b726ce6cd85a3e44f685d"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270835671,"key":"3ff996eb5ce390b687ff657c4874980f"},{"message":" Topic Load (47.2ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (9158)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270835719,"key":"decb54fb7582577a371f237645cd75a9"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270835721,"key":"2e6b02db236151c8962b9f829f57c61f"},{"message":" SQL (42.1ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (9158)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270835768,"key":"3b8efd65a7f0e108aac648b481df0771"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270835769,"key":"c383c47de4eaceb7188008e4999d7106"},{"message":" Topic Load (9.9ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (9158,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (9158)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270835780,"key":"0080cd08eb71b4e0b3208c7c959064cf"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270835782,"key":"eb1162a3db7b1f2d922ac2fdd4b6b20a"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (1026)","progname":null,"severity":0,"timestamp":1399270835783,"key":"228e406c0736b7aa4ee518dbab4a404e"},{"message":" TopicUser Load (2.6ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (1225, 7030, 7146, 7935, 2902, 14696, 2057) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270835787,"key":"1305957d045fce755941006214bf081d"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1134, 3998, 1128, 1129, 32, 5160, 1, 5610, 19, 5543, 1995, 2, 5271, 32, 2395, 19, 9271, 1995, 32, 1013, 1)","progname":null,"severity":0,"timestamp":1399270835788,"key":"67d0c0e6fec3658c494b5fc81b9f2f29"},{"message":" (0.9ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 9158) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270835790,"key":"3f0893e40f6be90ab10046eef68ce2d7"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 9158 LIMIT 1","progname":null,"severity":0,"timestamp":1399270835792,"key":"312f59292ae2c1c96bcc4a94439c0e23"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 9158]]","progname":null,"severity":0,"timestamp":1399270835793,"key":"532068099d4ade510d86f51652d6f765"},{"message":"Completed 200 OK in 183ms (Views: 0.1ms | ActiveRecord: 129.3ms)","progname":null,"severity":1,"timestamp":1399270835797,"key":"6ac1e3b391d824fb6c008c1963c5c7f8"},{"message":"Started GET \"/t/7030/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:36 +1000","progname":null,"severity":1,"timestamp":1399270836797,"key":"fd9892712696aa1dfaa80ca3ffd97c48"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270836809,"key":"2c52c6432381f5ea31fd3162f8c6e7a2"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"7030\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270836810,"key":"9c8766f4190a6ac536eac8f732b95edb"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270836811,"key":"4a146dc94aec710030cc2a3c8ae53258"},{"message":" Topic Load (0.6ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 7030 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270836813,"key":"5a39bb3d351e6b1c079877dab959c8ab"},{"message":" Category Load (0.3ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270836814,"key":"5d5c8a152cc8b6e64d42f9f4a0ac2d1f"},{"message":" (0.4ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836815,"key":"1a4e2e0e873dfcb1a6cf196c2bd59901"},{"message":" (0.2ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836816,"key":"dc8a9485ab5dd76b0e987ad25301bc23"},{"message":" (0.7ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_7030'","progname":null,"severity":0,"timestamp":1399270836817,"key":"e1a4d571d0ada3d0d03a70c8dab7064f"},{"message":" Draft Load (0.2ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_7030' LIMIT 1","progname":null,"severity":0,"timestamp":1399270836818,"key":"1a407270c15554a54838052502ea3c7a"},{"message":" Post Load (0.6ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (18674) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270836820,"key":"ece9b849a76192b9a3fedac3a6e87762"},{"message":" User Load (0.3ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (5160)","progname":null,"severity":0,"timestamp":1399270836821,"key":"6de21e4eec94c9911cf20f855ef76561"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270836822,"key":"c8bc1cfb8bf315946a629b83cca4126a"},{"message":" (2.7ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (18674)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270836825,"key":"c92added2525375af808ed47f586bd67"},{"message":" TopicUser Load (0.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836827,"key":"01995eaff3cb2ef3b60952482af2fe11"},{"message":" (0.3ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (18674) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270836828,"key":"7edc7dde275cb519a5bf85c0b7400cab"},{"message":" (1.1ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 7030 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1)","progname":null,"severity":0,"timestamp":1399270836830,"key":"cc5774e4a594e7a7bbc77846ad8c09a4"},{"message":" PostAction Load (0.6ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (18674) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270836831,"key":"66abf862173c9afa091b80d699f1aebe"},{"message":" User Load (0.3ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 5160]]","progname":null,"severity":0,"timestamp":1399270836832,"key":"a1de875cb2e87ef6e2110853f82c3d56"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 5160]]","progname":null,"severity":0,"timestamp":1399270836833,"key":"9ae66179d9c23ae64a18a5ba4d2a96a3"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836835,"key":"ccf717be74a43030a40ca296f03f3ee5"},{"message":" Group Load (0.3ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836836,"key":"bc4382c36d1d4bead155f3c33b102926"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 7030 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270836837,"key":"e72380c70d4f62942938f4e5b0dc8ec9"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (5160)","progname":null,"severity":0,"timestamp":1399270836838,"key":"c464074061aa2315959c1ae7b72cb883"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270836838,"key":"ab6a7512eb80835a14a3a05e9fdcbe95"},{"message":" Topic Load (46.7ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (7030)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270836886,"key":"6318216cf12d926430008d4afe4335d3"},{"message":" UserStat Load (0.2ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270836888,"key":"463734764b16c04e9c5eef7d306c1498"},{"message":" SQL (35.2ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (7030)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270836927,"key":"4b0a8d1fc00a847f2f95d0e54b6d2bae"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270836928,"key":"59537fcd7af54fe92854a55a9221b46a"},{"message":" Topic Load (10.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (7030,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (7030)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 7 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270836939,"key":"670cb182c1dc40684f26e3a2726a71a3"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (7)","progname":null,"severity":0,"timestamp":1399270836941,"key":"519fcbca8c3fa8da167872a90b6a29d1"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (1026)","progname":null,"severity":0,"timestamp":1399270836942,"key":"a84137c2ed005ff10475b61b6f3f89b2"},{"message":" TopicUser Load (2.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (9533, 14558, 1759, 13991, 12855, 5630, 4156) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270836945,"key":"5af72d5e7b5f35603f374e12def4f459"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1374, 1, 32, 1191, 754, 9271, 6626, 1, 32, 9513, 1582, 6793, 32, 5108, 1412, 1, 1995, 6268, 32, 6548, 3929, 212, 639)","progname":null,"severity":0,"timestamp":1399270836947,"key":"9ec410aef9b45860d8e78dcfc3c91046"},{"message":" (1.2ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 7030) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270836950,"key":"a8cf9866ec2682c25fbc5188c60b37de"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 7030 LIMIT 1","progname":null,"severity":0,"timestamp":1399270836951,"key":"923dd40ac43f88496a9a78e450fc904c"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 7030]]","progname":null,"severity":0,"timestamp":1399270836952,"key":"9272a451300ae469fce27d5877337437"},{"message":"Completed 200 OK in 146ms (Views: 0.1ms | ActiveRecord: 108.2ms)","progname":null,"severity":1,"timestamp":1399270836956,"key":"90f1dc6058b02ea3596b66cab51fffca"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:20:42 +1000","progname":null,"severity":1,"timestamp":1399270842623,"key":"7e974294266ecfff969481b601773f16"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270842635,"key":"8a8b309479561ea0fab19a2d07863ff3"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270842637,"key":"4d9787c1fb5b879102a93f3dac43e604"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270842638,"key":"781f9c879fe53f5ed98f90b85b29b6a5"},{"message":" Draft Load (0.5ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270842640,"key":"055680f33f7ce983f386b4e8729094d6"},{"message":" SQL (76.0ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270842719,"key":"85166324a42020b7e06fe83aca27d4ab"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270842725,"key":"c5baabe00a4d3f8eb3d40680263031db"},{"message":" User Load (0.6ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270842728,"key":"02e716ded68481b97bc99baa8843e9fd"},{"message":"Completed 200 OK in 110ms (Views: 0.1ms | ActiveRecord: 79.0ms)","progname":null,"severity":1,"timestamp":1399270842745,"key":"ee5c7bd43aa3ec6431491ea6c9162f13"},{"message":"Started GET \"/t/14726/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:43 +1000","progname":null,"severity":1,"timestamp":1399270843613,"key":"6872095363de97c0cc36e96fa5bb0402"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270843625,"key":"ed3bbeff36bbffc8a80d5f7194218a43"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"14726\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270843625,"key":"d79552181248d5c885552c9dc6312936"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270843627,"key":"65b0bc940d966f7916b7d1f6c07c7aa1"},{"message":" Topic Load (0.6ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 14726 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270843629,"key":"4cae03ced9bf03bf7daa917ad68bfe59"},{"message":" Category Load (0.3ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17)","progname":null,"severity":0,"timestamp":1399270843631,"key":"2c420035f58e7645115b431bb1f2728e"},{"message":" (0.5ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843633,"key":"267d96035ac349f894ceead4114ad9da"},{"message":" (0.3ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843634,"key":"eb523f4bd8ed98b0b84447b7cf7aa91c"},{"message":" (0.4ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_14726'","progname":null,"severity":0,"timestamp":1399270843635,"key":"4a21838ee44b07204451a1c6cac123ad"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_14726' LIMIT 1","progname":null,"severity":0,"timestamp":1399270843638,"key":"93f1f096e1b5f8c3f5cf01c196a31f62"},{"message":" Post Load (0.4ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (48881, 48965, 48982) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270843639,"key":"2b967913ef5155a6658f49ed30b980e2"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9536, 3)","progname":null,"severity":0,"timestamp":1399270843641,"key":"91b830db5c37755a0480004d1a606cb8"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3)","progname":null,"severity":0,"timestamp":1399270843643,"key":"971326b4563867f889df5bd0e16b1319"},{"message":" (0.4ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270843644,"key":"eef09701098ca85af43b6bcae1e4bb09"},{"message":" (2.9ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (48881,48965,48982)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270843648,"key":"5f225811ea071cc589e60a3c8f333722"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843650,"key":"5d9341ef3f607f4319bb473bd932faa5"},{"message":" (0.5ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (48881, 48965, 48982) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270843651,"key":"1ccb3953b056f4b9fecc0b7aa4611d74"},{"message":" (2.9ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 14726 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1, 2, 3)","progname":null,"severity":0,"timestamp":1399270843655,"key":"4fefd77a374f3f750d8296e88ff02cd8"},{"message":" PostAction Load (0.5ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (48881, 48965, 48982) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270843657,"key":"5215d12f1c08c1564773029eb07bcb8f"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9536]]","progname":null,"severity":0,"timestamp":1399270843661,"key":"64342ac37264c43f3820875512203ee6"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9536]]","progname":null,"severity":0,"timestamp":1399270843662,"key":"3a1296c565fedf539177fb7e31c957a3"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843664,"key":"da01ddddd12786160d6e5bd4036326c0"},{"message":" Group Load (0.4ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843665,"key":"d25b49a99129f43198d6e9634b2d287f"},{"message":" (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 14726 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270843667,"key":"4fc2e811e65e47e9340280cb46511db5"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9536, 3)","progname":null,"severity":0,"timestamp":1399270843668,"key":"6ff5d1faaafc48d0c6a12e584d22f1ac"},{"message":" (0.3ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270843669,"key":"f227b9876312659fed0beb6630ad7e24"},{"message":" Topic Load (47.5ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (14726)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270843718,"key":"520b6c924bdcc7867e342499e227ffb8"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270843719,"key":"e33efaffa3e793a5d93a2b60d82ac3d3"},{"message":" SQL (37.3ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (14726)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270843761,"key":"55acda5328949e64a613c58e6b9e4f80"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270843762,"key":"7c0e14e446112bf41ce908c69d9973a8"},{"message":" Topic Load (9.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (14726,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (14726)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 17 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270843772,"key":"a2d1b58e7b9c63cd8ae65b2a13214f81"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (17)","progname":null,"severity":0,"timestamp":1399270843774,"key":"61412a71effcf48c32acdacab21c4bfe"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (2795, 13826, 1444, 5913, 6574, 13355, 13585) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270843775,"key":"0fed954a683d58e07c06f202c637d7fd"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1274, 32, 9, 639, 2321, 623, 9194, 32, 1293, 8348, 32, 4263, 8, 8072, 3520, 4217, 32, 3802, 1, 5027, 5013, 8958, 32, 6695, 4457, 2770)","progname":null,"severity":0,"timestamp":1399270843777,"key":"0afd558341214bff087c058bc13e4e43"},{"message":" (0.6ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 14726) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270843779,"key":"3285e151190c20054739db1fba9adac7"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 14726 LIMIT 1","progname":null,"severity":0,"timestamp":1399270843780,"key":"bdec0924a36190132d23af0b542375f3"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 14726]]","progname":null,"severity":0,"timestamp":1399270843781,"key":"2a79e041929706b7c6422a35d43e3db7"},{"message":"Completed 200 OK in 159ms (Views: 0.1ms | ActiveRecord: 110.7ms)","progname":null,"severity":1,"timestamp":1399270843785,"key":"e7790c05673a23748c0dc331f871e5af"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:20:44 +1000","progname":null,"severity":1,"timestamp":1399270844415,"key":"25134cea6ce52b3c56138f09167dc63c"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270844429,"key":"4c7c641fa45e04b7f433585ccb96ae92"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270844431,"key":"0f8e43d831b3b8bb7aae347f9a722788"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270844433,"key":"30da9eb859f65525beec94892335195c"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270844434,"key":"6c489835a96a93dec8f85cfb22e4dc76"},{"message":" SQL (80.9ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270844518,"key":"7a414f7a7d3581945c248a246c67072e"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270844524,"key":"f055bcc4c8ef6540cbf83b3eeb2c1b5b"},{"message":" User Load (0.7ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270844527,"key":"1c0957487a6cb1b446f05a97eeeeb0d7"},{"message":"Completed 200 OK in 119ms (Views: 0.2ms | ActiveRecord: 83.5ms)","progname":null,"severity":1,"timestamp":1399270844549,"key":"74fa8617c5ffb5a68d2d5d67eefd871f"},{"message":"Started GET \"/latest.json?no_definitions=true&page=1\" for 127.0.0.1 at 2014-05-05 16:20:45 +1000","progname":null,"severity":1,"timestamp":1399270845733,"key":"f9b02bcdc96d9b3c30a9541cb069c68a"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270845745,"key":"81c913dbd8fc0a1ab8f09ead6ddab0b9"},{"message":" Parameters: {\"no_definitions\"=>\"true\", \"page\"=>\"1\"}","progname":null,"severity":1,"timestamp":1399270845745,"key":"232d66492461b783a0a28b10b5135e38"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270845746,"key":"dcc86d3ad683ac905f294bc3b9e4ef39"},{"message":" (0.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270845749,"key":"5242c3ed6caa3e91b182d1466d94312b"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270845751,"key":"8392dc7aab27c032182c5885469a8a11"},{"message":" SQL (82.2ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30 OFFSET 30","progname":null,"severity":0,"timestamp":1399270845840,"key":"f7bcd1fde878bb59a7c796ece57d896a"},{"message":" TopicUser Load (1.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (5283, 10083, 14729, 11090, 14465, 5949, 14608, 14728, 14717, 14722, 14721, 14718, 14373, 14688, 9873, 14679, 14573, 12455, 11146, 14318, 14657, 14704, 6091, 14697, 14662, 13819, 10470, 14200, 6244, 232) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270845847,"key":"71834598807c4ec05eb702cc5e3f9c28"},{"message":" User Load (1.0ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (4141, 9579, 3620, 1, 2291, 5651, 5331, 32, 1583, 6755, 32, 7519, 9378, 32, 6695, 5707, 6626, 7614, 1, 32, 3, 5372, 1, 9598, 3987, 1, 464, 9271, 6626, 7225, 9655, 3415, 9653, 3987, 1995, 374, 4549, 7991, 9639, 8617, 32, 2, 5351, 5564, 6548, 4263, 5707, 8300, 6060, 8883, 7743, 1, 32, 1496, 3415, 8803, 5351, 2072, 6283, 7229, 1995, 32, 9438, 1, 471, 4263, 8617, 2770, 2, 8810, 8492, 5351, 9271, 1, 32, 6626, 4754, 32, 1, 2981, 9650, 3062, 9550, 9536, 1, 6626, 7665, 9185, 8364, 6283, 9053, 3657, 9513, 1995, 5707, 9312, 6626, 2316, 2989, 1, 74, 8, 704, 714, 3382)","progname":null,"severity":0,"timestamp":1399270845850,"key":"58592393a3abf1e90f22009381f076cd"},{"message":"Completed 200 OK in 125ms (Views: 0.1ms | ActiveRecord: 85.5ms)","progname":null,"severity":1,"timestamp":1399270845871,"key":"c93d352421453a5568630783f4eb8d5a"},{"message":"Started GET \"/t/9552/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:46 +1000","progname":null,"severity":1,"timestamp":1399270846302,"key":"34ac5097c5e240d0b7186cb0c3c76ee1"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270846316,"key":"aa32440d690450bc27590c8a610daeba"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"9552\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270846316,"key":"5f0449f2f6e88e22ef7b5f5ab6550d96"},{"message":" User Load (0.6ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270846318,"key":"409694fe582da33f9b13b09325a4fd84"},{"message":" Topic Load (0.7ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 9552 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270846321,"key":"bb9fd8c97475360ae85b3a9159691dcf"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270846323,"key":"2e3ca29b46d93498674a9ec919cddf4c"},{"message":" (0.9ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846326,"key":"af48978820a78952b512ca7ff6d16940"},{"message":" (0.3ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846327,"key":"d913a389f7e2c077747795782c7db8fe"},{"message":" (2.5ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_9552'","progname":null,"severity":0,"timestamp":1399270846330,"key":"f20a7a1549aec928eacdaa8b67297747"},{"message":" Draft Load (0.8ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_9552' LIMIT 1","progname":null,"severity":0,"timestamp":1399270846333,"key":"731aa2195b598cd24d12ebe42720d569"},{"message":" Post Load (1.6ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (27575, 27594, 27602, 27613, 37016, 48921, 48922) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270846336,"key":"6aa66685e26daae9af5ef977336e9bf9"},{"message":" User Load (1.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (6775, 1, 32)","progname":null,"severity":0,"timestamp":1399270846338,"key":"5b1d56da3f1bfe90605221d620529b2e"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270846340,"key":"5fc9ecf73200bab7d40e084a875c1ae0"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270846341,"key":"1e1d4f6e09590652a0f876902d2f1f20"},{"message":" (2.8ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (27575,27594,27602,27613,37016,48921,48922)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270846344,"key":"6683e174e4e491834809a050efc2351d"},{"message":" TopicUser Load (0.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846346,"key":"081d3e10a6f62b6e4f269e1af9cd7fcd"},{"message":" (0.4ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (27575, 27594, 27602, 27613, 37016, 48921, 48922) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270846347,"key":"ccb256b2264f12171e58683d8e67c8ca"},{"message":" (2.0ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 9552 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1, 2, 3, 4, 5, 6, 7)","progname":null,"severity":0,"timestamp":1399270846350,"key":"d841b05d5b0e7dfb6208865e1f39af17"},{"message":" PostAction Load (0.9ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (27575, 27594, 27602, 27613, 37016, 48921, 48922) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270846352,"key":"4dc58dd4d83ee4cb3d0d710209b0a02d"},{"message":" (0.3ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270846353,"key":"6a286b290b478395b4ac8b979430d708"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270846355,"key":"f18a7455078185c911ee46aaeebc9818"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270846356,"key":"10b4cab55ffb6b778ee3aea3e71f92cb"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 32]]","progname":null,"severity":0,"timestamp":1399270846360,"key":"0dda61358c927becc4263475f088236e"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270846361,"key":"18c60bf057cffab354a4d5cd3549cce8"},{"message":" CACHE (0.0ms) SELECT \"groups\".\"id\", \"groups\".\"name\" FROM \"groups\" WHERE \"groups\".\"id\" IN (47)","progname":null,"severity":0,"timestamp":1399270846376,"key":"ab254675ae1dad951b3850a9e0912df7"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 6775]]","progname":null,"severity":0,"timestamp":1399270846378,"key":"b0356ac3f54af5a195f5dcb3cfc00325"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 32]]","progname":null,"severity":0,"timestamp":1399270846378,"key":"2104d3cf8f533eaaedd866b36f64b201"},{"message":" User Load (1.1ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846380,"key":"3bce5a657e188075827c9370d0f93cbe"},{"message":" Group Load (0.3ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846382,"key":"7dfcc14de38f3cbf1f2b5d24799a1840"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 9552 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270846383,"key":"bc96ed6097c304f93d3942d9d6389c72"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (32, 6775, 1)","progname":null,"severity":0,"timestamp":1399270846384,"key":"56c810e7d622880f7980abb18adebc1a"},{"message":" (0.2ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270846385,"key":"1a485af978b156b075a65973686e42ac"},{"message":" Topic Load (45.2ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (9552)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270846431,"key":"133389565bc083872bc86d0a057ea851"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270846433,"key":"5b78d2aaedfa8e0e4a349ed210044bb8"},{"message":" SQL (33.9ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (9552)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270846471,"key":"26514bfdad7035289703ef237d146170"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270846473,"key":"55518bb9c7c022b107b66b0ab679c4c9"},{"message":" Topic Load (9.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (9552,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (9552)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270846483,"key":"fbf62751675a4ad4c546903eebdff2da"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270846484,"key":"03361284a7cdd47517ea7997cba83bb8"},{"message":" Topic Load (0.3ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2)","progname":null,"severity":0,"timestamp":1399270846486,"key":"468054eccba0a3cec4296564c74c1f15"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (8780, 12801, 7114, 13431, 13591, 9808, 12471) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270846487,"key":"453d5003700e9d6adbab1ed4966ef073"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (3681, 2316, 32, 8434, 8085, 1, 6626, 5351, 19, 1, 4457, 3062, 3169, 6449, 6626, 8810, 32, 1, 5628, 5586, 32, 471)","progname":null,"severity":0,"timestamp":1399270846489,"key":"3ceda78e8e5689009478937a91334a52"},{"message":" (2.8ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 9552) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270846493,"key":"e7b1a542f2dc888535af9eddc3c3662c"},{"message":" Category Exists (0.4ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 9552 LIMIT 1","progname":null,"severity":0,"timestamp":1399270846495,"key":"bfb8611146fa3d02ed0888f10ee96c2f"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 9552]]","progname":null,"severity":0,"timestamp":1399270846496,"key":"dc7cc7daf054188a1450a89f8a759e22"},{"message":"Completed 200 OK in 183ms (Views: 0.1ms | ActiveRecord: 113.0ms)","progname":null,"severity":1,"timestamp":1399270846500,"key":"e8854844949c850f2e6cc4d409bd1728"},{"message":"Started GET \"/t/8780/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:48 +1000","progname":null,"severity":1,"timestamp":1399270848018,"key":"a848a222cc2e68ed2e9f473778c4de59"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270848030,"key":"2c6ed48d809472a8c5a473b27632eb90"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"8780\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270848031,"key":"10f1c4f08415ed44b938da3ae972e8d5"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270848033,"key":"b7f54b72cb1edd75546f6b695add2ece"},{"message":" Topic Load (0.8ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 8780 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270848035,"key":"faab2d8ddaff1e02a5a8de48d0a82863"},{"message":" Category Load (0.4ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270848036,"key":"abd37427501aa8e5aaad600c0f486de1"},{"message":" (0.8ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848038,"key":"23145dc87aa2a604ddd0ec581e353ecf"},{"message":" (0.3ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848039,"key":"2376d93aa5c015bf3e29aaa562196d92"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_8780'","progname":null,"severity":0,"timestamp":1399270848040,"key":"c5393b090bed7a4d253b31697d410c45"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_8780' LIMIT 1","progname":null,"severity":0,"timestamp":1399270848042,"key":"4484b18663d7fa9a45cce847ed80b6d0"},{"message":" Post Load (0.4ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (24905) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270848044,"key":"0f97fb90a8c872576fb3e9e7b5ed291e"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3681)","progname":null,"severity":0,"timestamp":1399270848045,"key":"237c721ee8f0ebb3fe7101f598099a71"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270848046,"key":"05a92769475d9d7841630109db1cdd25"},{"message":" (2.5ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (24905)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270848049,"key":"235c8bd826d404fe8daa41528a858ff5"},{"message":" TopicUser Load (0.4ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848051,"key":"a351b262183ca7e8ef45a5a5eaef0062"},{"message":" (0.4ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (24905) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270848052,"key":"7e5f5f22dfa8a21d4b6563fe2948b081"},{"message":" (1.1ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 8780 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1)","progname":null,"severity":0,"timestamp":1399270848054,"key":"9d38dc9e6deb7ee78fd05e8085e3a5ed"},{"message":" PostAction Load (0.3ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (24905) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270848055,"key":"58b557f7bb2bc172a48ea792c2a8b987"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 3681]]","progname":null,"severity":0,"timestamp":1399270848057,"key":"d5f11c4ebdd04651cd12c813ecf02669"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 3681]]","progname":null,"severity":0,"timestamp":1399270848058,"key":"57519f66bc20bd14573ed8ba5b5c5d4c"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848060,"key":"7345a4b4344ff1ae30020d593756f78e"},{"message":" Group Load (0.3ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848061,"key":"a63aea6e78603346659238e315ecd947"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 8780 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270848062,"key":"ada423bee79529f99d21dbe6b130418e"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (3681)","progname":null,"severity":0,"timestamp":1399270848063,"key":"d02e7ac7d31774b8041ede6e6cdfa205"},{"message":" (0.3ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270848064,"key":"b936851c737a599e84085ec92ffd87b3"},{"message":" Topic Load (46.1ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (8780)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270848111,"key":"eb0993ceb8981a16c2aeae02aad078be"},{"message":" UserStat Load (0.4ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270848113,"key":"6fb6569323003b24c5d41af01b38d672"},{"message":" SQL (34.2ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (8780)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270848152,"key":"ad84b9c50029973199d354b24958824e"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270848153,"key":"8a5fdce12fb2586b3107eda43227e7cc"},{"message":" Topic Load (9.0ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (8780,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (8780)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 1 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270848163,"key":"0e8969a3a90f97690ab1d718470180ef"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (1)","progname":null,"severity":0,"timestamp":1399270848164,"key":"1389f37498e55e2a9974a710e0ee63f3"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (2)","progname":null,"severity":0,"timestamp":1399270848166,"key":"7b8697d3331e07431e52e38a903b1a9b"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (12632, 14465, 14064, 13950, 13164, 7621, 13538) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270848167,"key":"171bd290acd46936e5f80d25759839e3"},{"message":" User Load (0.4ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (3, 7614, 1, 32, 6613, 471, 6626, 6626, 32, 2188, 2, 3865, 1)","progname":null,"severity":0,"timestamp":1399270848168,"key":"141011c13eb5dfc739004a28c2176225"},{"message":" (2.4ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 8780) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270848172,"key":"adde92d2fa97186b30ef474acc1af7b2"},{"message":" Category Exists (0.3ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 8780 LIMIT 1","progname":null,"severity":0,"timestamp":1399270848173,"key":"8e22f07327b5c19653af047b927bd648"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 8780]]","progname":null,"severity":0,"timestamp":1399270848174,"key":"b65c6943e640dc0d0878ea99d9d3b9e1"},{"message":"Completed 200 OK in 147ms (Views: 0.1ms | ActiveRecord: 105.3ms)","progname":null,"severity":1,"timestamp":1399270848178,"key":"459dff59c57aced528a5d22a9eafbe45"},{"message":"Started GET \"/uploads/meta_discourse/1512/60b258e27a24e22f.png\" for 127.0.0.1 at 2014-05-05 16:20:48 +1000","progname":null,"severity":1,"timestamp":1399270848242,"key":"d072da9defc7093185727dc604c54a27"},{"message":"Processing by UploadsController#show as HTML","progname":null,"severity":1,"timestamp":1399270848267,"key":"af6323135a8d329df6fbe407d40ff688"},{"message":" Parameters: {\"site\"=>\"meta_discourse\", \"id\"=>\"1512\", \"sha\"=>\"60b258e27a24e22f\", \"extension\"=>\"png\"}","progname":null,"severity":1,"timestamp":1399270848268,"key":"51151addeb21f40b31e5b2201837db18"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270848270,"key":"469d1020e81767d23f2b3a260e1bdc2f"},{"message":" (0.3ms) SELECT \"groups\".\"name\" FROM \"groups\"","progname":null,"severity":0,"timestamp":1399270848272,"key":"f391ba7e543c2805104dc9d04820626f"},{"message":" (0.3ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270848273,"key":"0989156a411a090ef9c65eebe6d111bc"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,19,20,23,25)) ORDER BY \"categories\".\"position\" ASC","progname":null,"severity":0,"timestamp":1399270848274,"key":"b41c0ba57e896a5cb90345b5a70690f7"},{"message":" Topic Load (0.5ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12104, 3038, 13189, 12925, 11, 5250, 2628, 13965, 1026, 14549, 2626, 2, 11498, 5425, 25, 2828, 28, 24, 13110, 12282, 389, 2629, 12648, 14747)","progname":null,"severity":0,"timestamp":1399270848277,"key":"302ab251f2e16ded802f6b74d977e17e"},{"message":" (0.2ms) SELECT \"categories\".\"id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270848278,"key":"bd671d22eda40cad68f1bf98c4d9d3b9"},{"message":" PostActionType Load (0.2ms) SELECT \"post_action_types\".* FROM \"post_action_types\" ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270848280,"key":"d3f18e22dd03098f579d2e065640e11c"},{"message":" PostActionType Load (0.2ms) SELECT \"post_action_types\".* FROM \"post_action_types\" WHERE \"post_action_types\".\"name_key\" IN ('inappropriate', 'spam', 'notify_moderators') ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270848282,"key":"6e684091061868f64383083fd158d983"},{"message":" SiteContent Load (0.2ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'top' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270848284,"key":"e9c0c623aa3cf30d4d61736c9c13f976"},{"message":" SiteContent Load (0.2ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'bottom' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270848285,"key":"efccb9b425de886c5f6c293d36c9f405"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, notification_type AS notification_type FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (id > 84737 and read = false) GROUP BY notification_type [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270848287,"key":"b9e0ae12158b5cd9b3e71df6c5050cc2"},{"message":" (2.4ms) SELECT COUNT(*) FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (read = false AND notification_type = 6) [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270848290,"key":"005fecdb20bf00eb9ad2db9826dc6980"},{"message":" UserStat Load (0.2ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270848291,"key":"5f40f892a684c5563eae67f0de36d921"},{"message":" (0.7ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"user_id\" = $1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270848293,"key":"f618c541c2b86a7bdbc5bd905cacb648"},{"message":" (3.4ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270848297,"key":"1c06399dc1ee33241003cb4389d338ad"},{"message":" CACHE (0.0ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270848298,"key":"dfb21d88e2663948eaec14a17fb5975b"},{"message":" (29.9ms) SELECT u.id AS user_id,\n topics.id AS topic_id,\n topics.created_at,\n highest_post_number,\n last_read_post_number,\n c.name AS category_name,\n tu.notification_level\n FROM users u\n INNER JOIN user_stats AS us ON us.user_id = u.id\n FULL OUTER JOIN topics ON 1=1\n LEFT JOIN topic_users tu ON tu.topic_id = topics.id AND tu.user_id = u.id\n LEFT JOIN categories c ON c.id = topics.category_id\n WHERE u.id IN (1) AND\n topics.archetype <> 'private_message' AND\n ((tu.last_read_post_number < topics.highest_post_number AND COALESCE(tu.notification_level, 1) >= 2) OR (topics.created_at >= GREATEST(CASE\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -1 THEN u.created_at\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -2 THEN COALESCE(u.previous_visit_at,u.created_at)\n ELSE ('2014-05-05 06:20:48.299229'::timestamp - INTERVAL '1 MINUTE' * COALESCE(u.new_topic_duration_minutes, 2880))\n END, us.new_since) AND tu.last_read_post_number IS NULL AND COALESCE(tu.notification_level, 2) >= 2)) AND\n (topics.visible OR u.admin OR u.moderator) AND\n topics.deleted_at IS NULL AND\n ( category_id IS NULL OR NOT c.read_restricted OR category_id IN (\n SELECT c2.id FROM categories c2\n JOIN category_groups cg ON cg.category_id = c2.id\n JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id\n WHERE c2.read_restricted )\n )\n AND NOT EXISTS( SELECT 1 FROM category_users cu\n WHERE cu.user_id = u.id AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0)\n\n ORDER BY topics.bumped_at DESC LIMIT 500","progname":null,"severity":0,"timestamp":1399270848329,"key":"25414a89f67d9215ab747a90f703dd25"},{"message":"Completed 500 Internal Server Error in 65ms","progname":null,"severity":1,"timestamp":1399270848333,"key":"244d37b40312c5d5615a95687f0d3771"},{"message":"\nNameError - uninitialized class variable @@db_spec_cache in RailsMultisite::ConnectionManagement:\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:173:in `connection_spec'\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:13:in `establish_connection'\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:38:in `with_connection'\n app/controllers/uploads_controller.rb:19:in `show'\n actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\n actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\n actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\n activesupport (4.0.4) lib/active_support/callbacks.rb:493:in `_run__971792092623435619__process_action__callbacks'\n activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\n actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\n activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\n activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'\n actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\n activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\n actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'\n actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'\n rack-mini-profiler (0.9.1) lib/mini_profiler/profiling_methods.rb:79:in `block in profile_method'\n actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'\n actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\n actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'\n actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'\n actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'\n rack-protection (1.5.2) lib/rack/protection/frame_options.rb:31:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call'\n /home/sam/Source/logster/lib/logster/middleware/viewer.rb:36:in `call'\n rack (1.5.2) lib/rack/etag.rb:23:in `call'\n rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'\n rack (1.5.2) lib/rack/head.rb:11:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'\n rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'\n rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'\n message_bus (0.9.4) lib/message_bus/rack/middleware.rb:55:in `call'\n activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'\n activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\n activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__788907808888283613__call__callbacks'\n activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\n actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\n railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\n railties (4.0.4) lib/rails/rack/logger.rb:22:in `call'\n config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'\n config/initializers/silence_logger.rb:19:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\n rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\n rack (1.5.2) lib/rack/runtime.rb:17:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'\n rack (1.5.2) lib/rack/sendfile.rb:112:in `call'\n lib/middleware/missing_avatars.rb:21:in `call'\n lib/middleware/turbo_dev.rb:32:in `call'\n rack-mini-profiler (0.9.1) lib/mini_profiler/profiler.rb:215:in `call'\n railties (4.0.4) lib/rails/engine.rb:511:in `call'\n railties (4.0.4) lib/rails/application.rb:97:in `call'\n railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'\n rack (1.5.2) lib/rack/builder.rb:138:in `call'\n rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'\n rack (1.5.2) lib/rack/urlmap.rb:50:in `call'\n thin (1.6.1) lib/thin/connection.rb:82:in `block in pre_process'\n thin (1.6.1) lib/thin/connection.rb:80:in `pre_process'\n thin (1.6.1) lib/thin/connection.rb:55:in `process'\n thin (1.6.1) lib/thin/connection.rb:41:in `receive_data'\n eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'\n thin (1.6.1) lib/thin/backends/base.rb:73:in `start'\n thin (1.6.1) lib/thin/server.rb:162:in `start'\n thin (1.6.1) lib/thin/controllers/controller.rb:87:in `start'\n thin (1.6.1) lib/thin/runner.rb:200:in `run_command'\n thin (1.6.1) lib/thin/runner.rb:156:in `run!'\n thin (1.6.1) bin/thin:6:in `'\n bin/thin:16:in `
'\n","progname":null,"severity":4,"timestamp":1399270848345,"key":"ad503bd5d037a4aca10ea79fa2f38a04"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:20:49 +1000","progname":null,"severity":1,"timestamp":1399270849381,"key":"b04cf6280f713483c06d5532283f8d9c"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270849396,"key":"ee0a9e86a62ba2d16d659213ed576b72"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270849398,"key":"1a38865b8d6d0495fba24e6d75d3c032"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270849400,"key":"9aa9f0d41eb9f38dcb90d247c8c5ac68"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270849401,"key":"5fe3e91cf27b0288ba17dfbffc5dda75"},{"message":" SQL (76.8ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270849482,"key":"9c7aebff77fec36ff7f50b2685e809ed"},{"message":" TopicUser Load (0.9ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270849488,"key":"551377ca015c9c0d5a8253e810b37886"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270849491,"key":"63e6084d748b0f62c0c1ab40dd7f6df0"},{"message":"Completed 200 OK in 111ms (Views: 0.1ms | ActiveRecord: 79.8ms)","progname":null,"severity":1,"timestamp":1399270849507,"key":"6c2cd5a37c64bff303219ebfbf56b0ce"},{"message":"Started GET \"/latest.json?no_definitions=true&page=1\" for 127.0.0.1 at 2014-05-05 16:20:49 +1000","progname":null,"severity":1,"timestamp":1399270849797,"key":"bc54932ab596eade9779f06b8f7e9040"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270849809,"key":"9c3b426e55be9cd44862d74df10393f2"},{"message":" Parameters: {\"no_definitions\"=>\"true\", \"page\"=>\"1\"}","progname":null,"severity":1,"timestamp":1399270849809,"key":"896e1364b525514cb68f941cfe443ab0"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270849810,"key":"80e5c0ed1a9a0e994ddf46098532d69c"},{"message":" (0.8ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270849813,"key":"efece01fd25e7e12177674286753d9b7"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270849814,"key":"ce5d9497b22ca78a919d63e73f5e623e"},{"message":" SQL (83.1ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30 OFFSET 30","progname":null,"severity":0,"timestamp":1399270849901,"key":"bda57f89da58e693889eaac75b07b362"},{"message":" TopicUser Load (1.0ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (5283, 10083, 14729, 11090, 14465, 5949, 14608, 14728, 14717, 14722, 14721, 14718, 14373, 14688, 9873, 14679, 14573, 12455, 11146, 14318, 14657, 14704, 6091, 14697, 14662, 13819, 10470, 14200, 6244, 232) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270849908,"key":"10c5ac625c7508433efd3e0788b083ef"},{"message":" User Load (0.7ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (4141, 9579, 3620, 1, 2291, 5651, 5331, 32, 1583, 6755, 32, 7519, 9378, 32, 6695, 5707, 6626, 7614, 1, 32, 3, 5372, 1, 9598, 3987, 1, 464, 9271, 6626, 7225, 9655, 3415, 9653, 3987, 1995, 374, 4549, 7991, 9639, 8617, 32, 2, 5351, 5564, 6548, 4263, 5707, 8300, 6060, 8883, 7743, 1, 32, 1496, 3415, 8803, 5351, 2072, 6283, 7229, 1995, 32, 9438, 1, 471, 4263, 8617, 2770, 2, 8810, 8492, 5351, 9271, 1, 32, 6626, 4754, 32, 1, 2981, 9650, 3062, 9550, 9536, 1, 6626, 7665, 9185, 8364, 6283, 9053, 3657, 9513, 1995, 5707, 9312, 6626, 2316, 2989, 1, 74, 8, 704, 714, 3382)","progname":null,"severity":0,"timestamp":1399270849911,"key":"63cabdf71ea7715a44ec64d12780c0ab"},{"message":"Completed 200 OK in 123ms (Views: 0.1ms | ActiveRecord: 85.8ms)","progname":null,"severity":1,"timestamp":1399270849933,"key":"2973f6d8ce49914bc4417cd74467315b"},{"message":"Started GET \"/t/14047/999999999.json?track_visit=true\" for 127.0.0.1 at 2014-05-05 16:20:50 +1000","progname":null,"severity":1,"timestamp":1399270850462,"key":"46f75963b490ee0fd6ea1d6278c0150e"},{"message":"Processing by TopicsController#show as JSON","progname":null,"severity":1,"timestamp":1399270850473,"key":"4541a5e765e97db97407cf08a58c406b"},{"message":" Parameters: {\"track_visit\"=>\"true\", \"topic_id\"=>\"14047\", \"post_number\"=>\"999999999\"}","progname":null,"severity":1,"timestamp":1399270850474,"key":"aae0987780b0662df32dfcb1a54f938b"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270850476,"key":"f0ef23347ecaf69adf45197bcf3a1b73"},{"message":" Topic Load (0.5ms) SELECT \"topics\".* FROM \"topics\" WHERE \"topics\".\"id\" = 14047 ORDER BY \"topics\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270850479,"key":"4c5c868a6a2c7771b9732097c226e49c"},{"message":" Category Load (0.3ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (6)","progname":null,"severity":0,"timestamp":1399270850480,"key":"08d597c462b8e3cf1f809e0be9137b72"},{"message":" (0.7ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY @(post_number - 999999999) [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850482,"key":"2e29d83f8b2fc9fcaf4ba023eb061e98"},{"message":" (0.3ms) SELECT \"posts\".\"id\" FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 ORDER BY \"posts\".\"sort_order\" ASC [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850483,"key":"b7c9d1334d7aab13544af74f29c027aa"},{"message":" (0.3ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'topic_14047'","progname":null,"severity":0,"timestamp":1399270850484,"key":"5da4e37b19ff1f0d055d87f261bdc217"},{"message":" Draft Load (0.4ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'topic_14047' LIMIT 1","progname":null,"severity":0,"timestamp":1399270850486,"key":"8466354d89f757879dced18d69f82e83"},{"message":" Post Load (2.6ms) SELECT \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" IN (46367, 46884, 46943, 47033, 47054, 47268, 47464, 47966, 48665, 48705, 48909, 48940) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270850489,"key":"ac11cb73aa80f97e4793d4d3bd15f5f4"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9038, 1042, 9408)","progname":null,"severity":0,"timestamp":1399270850492,"key":"32742c2ea05cf9eeb782986f737b930e"},{"message":" User Load (1.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1042, 9038)","progname":null,"severity":0,"timestamp":1399270850495,"key":"666a56090d26896b81825a219d37edb6"},{"message":" (0.4ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270850497,"key":"9053131e583818dff5a8546714aa9243"},{"message":" (3.8ms) SELECT\n l.post_id,\n l.url,\n l.clicks,\n COALESCE(t.title, l.title) AS title,\n l.internal,\n l.reflection,\n l.domain\n FROM topic_links l\n LEFT JOIN topics t ON t.id = l.link_topic_id\n LEFT JOIN categories AS c ON c.id = t.category_id\n WHERE (t.deleted_at IS NULL) AND (l.post_id IN (46367,46884,46943,47033,47054,47268,47464,47966,48665,48705,48909,48940)) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n ORDER BY reflection ASC, clicks DESC","progname":null,"severity":0,"timestamp":1399270850501,"key":"34591b96d04bb0063fcd878147092790"},{"message":" TopicUser Load (0.8ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" = $1 AND \"topic_users\".\"user_id\" = 1 ORDER BY \"topic_users\".\"id\" ASC LIMIT 1 [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850505,"key":"0f780b4763e849f17a14d4a8b7baa292"},{"message":" (0.6ms) SELECT \"posts\".\"post_number\" FROM \"posts\" LEFT OUTER JOIN \"users\" ON \"users\".\"id\" = \"posts\".\"user_id\" LEFT OUTER JOIN \"users\" \"reply_to_users_posts\" ON \"reply_to_users_posts\".\"id\" = \"posts\".\"reply_to_user_id\" WHERE \"posts\".\"id\" IN (46367, 46884, 46943, 47033, 47054, 47268, 47464, 47966, 48665, 48705, 48909, 48940) ORDER BY sort_order","progname":null,"severity":0,"timestamp":1399270850507,"key":"d0b05aaaf225205aee7bb844eb3c3529"},{"message":" (3.9ms) SELECT \"post_timings\".\"post_number\" FROM \"post_timings\" WHERE \"post_timings\".\"topic_id\" = 14047 AND \"post_timings\".\"user_id\" = 1 AND \"post_timings\".\"post_number\" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)","progname":null,"severity":0,"timestamp":1399270850512,"key":"af457dfa4205b5c9811dceb0a3d39291"},{"message":" PostAction Load (0.5ms) SELECT \"post_actions\".* FROM \"post_actions\" WHERE (\"post_actions\".\"deleted_at\" IS NULL) AND \"post_actions\".\"post_id\" IN (46367, 46884, 46943, 47033, 47054, 47268, 47464, 47966, 48665, 48705, 48909, 48940) AND \"post_actions\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270850513,"key":"daf1595fa05078416a4789e506e20250"},{"message":" User Load (0.8ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 9038]]","progname":null,"severity":0,"timestamp":1399270850522,"key":"3ed5b18b9d8dc0805a0edd52acc23d03"},{"message":" User Load (0.4ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 LIMIT 1 [[\"id\", 1042]]","progname":null,"severity":0,"timestamp":1399270850524,"key":"070e24b3ba3a4ffb7ddb214bb41e906b"},{"message":" User Load (0.9ms) SELECT \"users\".* FROM \"users\" INNER JOIN \"topic_allowed_users\" ON \"users\".\"id\" = \"topic_allowed_users\".\"user_id\" WHERE \"topic_allowed_users\".\"topic_id\" = $1 [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850526,"key":"c948e2e705cd9364f41cb48b963357c7"},{"message":" Group Load (0.4ms) SELECT \"groups\".* FROM \"groups\" INNER JOIN \"topic_allowed_groups\" ON \"groups\".\"id\" = \"topic_allowed_groups\".\"group_id\" WHERE \"topic_allowed_groups\".\"topic_id\" = $1 [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850527,"key":"e881ed8ac4949161c058df16fc0ce769"},{"message":" (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM \"posts\" WHERE (\"posts\".\"deleted_at\" IS NULL) AND \"posts\".\"topic_id\" = 14047 GROUP BY user_id ORDER BY count_all desc LIMIT 24","progname":null,"severity":0,"timestamp":1399270850529,"key":"acec7227546a847e4949f0a01cce8eba"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (9038, 1042, 9408)","progname":null,"severity":0,"timestamp":1399270850530,"key":"20d02209a656221844cce644403a869e"},{"message":" (0.3ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270850531,"key":"e33d839fc694380ea9ab2fd8680032f3"},{"message":" Topic Load (68.8ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (tu.last_read_post_number < topics.highest_post_number) AND (COALESCE(tu.notification_level, 1) >= 2) AND (topics.id NOT IN (14047)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.user_id = tu.user_id THEN 1 ELSE 2 END, CASE WHEN topics.category_id = 6 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270850601,"key":"584de104b8c21a3228d8bc5c458a2143"},{"message":" UserStat Load (0.3ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270850603,"key":"a166797f934cdd4fab190ca01c136cdb"},{"message":" SQL (34.8ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (topics.created_at >= '2013-02-01 04:41:25.593511') AND (tu.last_read_post_number IS NULL) AND (COALESCE(tu.notification_level, 2) >= 2) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) AND (topics.id NOT IN (14047)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 6 THEN 0 ELSE 1 END, CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 7","progname":null,"severity":0,"timestamp":1399270850641,"key":"794fc7accff353576459c7d3ba445fa7"},{"message":" CACHE (0.0ms) SELECT \"categories\".\"topic_id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270850642,"key":"34f4f8a7d1230efc1a7fb894b81a0a04"},{"message":" Topic Load (10.0ms) SELECT \"topics\".* FROM \"topics\" LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"closed\" = 'f' AND \"topics\".\"archived\" = 'f' AND (topics.id NOT IN (14047,10881,12104,3038,13189,12925,11,5250,2628,13965,1026,14549,2626,2,11498,5425,25,2828,28,24,13110,12282,389,2629,12648,14747)) AND (topics.id NOT IN (14047)) AND \"topics\".\"visible\" = 't' ORDER BY CASE WHEN topics.category_id = 6 THEN 0 ELSE 1 END, RANDOM() LIMIT 7","progname":null,"severity":0,"timestamp":1399270850654,"key":"e0231669940e71172e57295b4b120ff7"},{"message":" CACHE (0.0ms) SELECT \"categories\".* FROM \"categories\" WHERE \"categories\".\"id\" IN (6)","progname":null,"severity":0,"timestamp":1399270850655,"key":"67ae7cf5a1a905b9d9b1a9b737f30aa9"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (389)","progname":null,"severity":0,"timestamp":1399270850657,"key":"e7adde04f9d6a55334feec4b57abbf08"},{"message":" TopicUser Load (0.5ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (9234, 6738, 9189, 11379, 9494, 9927, 10337) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270850659,"key":"ba768c19241bb363bf03f5d03cb884e7"},{"message":" User Load (0.5ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (6357, 1, 4549, 2291, 4359, 1, 6476, 3, 5707, 7, 9020, 8024, 1, 6018, 6626, 5990, 6607, 1995, 6727, 7007, 2128, 1, 2, 1995, 7601, 32)","progname":null,"severity":0,"timestamp":1399270850660,"key":"fc415a34e87cbbcba8eb67b8426f173f"},{"message":" (0.7ms) SELECT ftl.url,\n COALESCE(ft.title, ftl.title) AS title,\n ftl.link_topic_id,\n ftl.reflection,\n ftl.internal,\n ftl.domain,\n MIN(ftl.user_id) AS user_id,\n SUM(clicks) AS clicks\n FROM topic_links AS ftl\n LEFT JOIN topics AS ft ON ftl.link_topic_id = ft.id\n LEFT JOIN categories AS c ON c.id = ft.category_id\n WHERE (ftl.topic_id = 14047) AND (ft.deleted_at IS NULL) AND (NOT COALESCE(c.read_restricted, false) OR c.id IN (18,19,20,23,25))\n GROUP BY ftl.url, ft.title, ftl.title, ftl.link_topic_id, ftl.reflection, ftl.internal, ftl.domain\n ORDER BY clicks DESC","progname":null,"severity":0,"timestamp":1399270850662,"key":"195e264d4b7aaa8460d251fe73d41cc3"},{"message":" Category Exists (0.2ms) SELECT 1 AS one FROM \"categories\" WHERE \"categories\".\"topic_id\" = 14047 LIMIT 1","progname":null,"severity":0,"timestamp":1399270850663,"key":"41de51b82b87b9759642c0664cd1918b"},{"message":" (0.3ms) SELECT MAX(\"posts\".\"post_number\") AS max_id FROM \"posts\" WHERE \"posts\".\"topic_id\" = $1 [[\"topic_id\", 14047]]","progname":null,"severity":0,"timestamp":1399270850664,"key":"28f9701205692001e6df323c4da6f841"},{"message":"Completed 200 OK in 195ms (Views: 0.1ms | ActiveRecord: 137.2ms)","progname":null,"severity":1,"timestamp":1399270850669,"key":"962c263716f779e84195706289ee6802"},{"message":"Started GET \"/uploads/meta_discourse/1512/60b258e27a24e22f.png\" for 127.0.0.1 at 2014-05-05 16:20:50 +1000","progname":null,"severity":1,"timestamp":1399270850697,"key":"171a96ef6d279c773395de06c73e4230"},{"message":"Processing by UploadsController#show as HTML","progname":null,"severity":1,"timestamp":1399270850715,"key":"0636060f5d4cda367e4bbccfce1b949b"},{"message":" Parameters: {\"site\"=>\"meta_discourse\", \"id\"=>\"1512\", \"sha\"=>\"60b258e27a24e22f\", \"extension\"=>\"png\"}","progname":null,"severity":1,"timestamp":1399270850715,"key":"eef69d0e1b2de7899ce22a83888ead80"},{"message":" User Load (0.5ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270850717,"key":"5c479156a92015300ae4b51c5b6573e8"},{"message":" (0.3ms) SELECT \"groups\".\"name\" FROM \"groups\"","progname":null,"severity":0,"timestamp":1399270850718,"key":"10716c528a33370d25211c5d4888d4fa"},{"message":" (0.2ms) SELECT categories.id FROM \"categories\" WHERE \"categories\".\"read_restricted\" = 't'","progname":null,"severity":0,"timestamp":1399270850719,"key":"e700594cfa87728c1d0c0fe3b2513782"},{"message":" Category Load (0.5ms) SELECT \"categories\".* FROM \"categories\" WHERE (NOT categories.read_restricted or categories.id in (18,19,20,23,25)) ORDER BY \"categories\".\"position\" ASC","progname":null,"severity":0,"timestamp":1399270850720,"key":"a6dbc84a611a64f115889372b84d3808"},{"message":" Topic Load (0.4ms) SELECT id, title, slug FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"id\" IN (10881, 12104, 3038, 13189, 12925, 11, 5250, 2628, 13965, 1026, 14549, 2626, 2, 11498, 5425, 25, 2828, 28, 24, 13110, 12282, 389, 2629, 12648, 14747)","progname":null,"severity":0,"timestamp":1399270850722,"key":"18f16cfe5d8fbfd779f85c33e0bda003"},{"message":" (0.2ms) SELECT \"categories\".\"id\" FROM \"categories\"","progname":null,"severity":0,"timestamp":1399270850723,"key":"f8b3a6c2efca64b87b971e4c88369eb2"},{"message":" PostActionType Load (0.3ms) SELECT \"post_action_types\".* FROM \"post_action_types\" ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270850725,"key":"ebc30e5e92111f048fa56a547230a3fb"},{"message":" PostActionType Load (0.3ms) SELECT \"post_action_types\".* FROM \"post_action_types\" WHERE \"post_action_types\".\"name_key\" IN ('inappropriate', 'spam', 'notify_moderators') ORDER BY position asc","progname":null,"severity":0,"timestamp":1399270850727,"key":"10c85dbcf13352c985e63b6bf3de5155"},{"message":" SiteContent Load (0.3ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'top' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270850730,"key":"4c8988350464eef1459898d5435627bf"},{"message":" SiteContent Load (0.2ms) SELECT content FROM \"site_contents\" WHERE \"site_contents\".\"content_type\" = 'bottom' ORDER BY \"site_contents\".\"content_type\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270850732,"key":"aca60cb62c96544cd1ff34ab8d91e296"},{"message":" (0.3ms) SELECT COUNT(*) AS count_all, notification_type AS notification_type FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (id > 84737 and read = false) GROUP BY notification_type [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270850733,"key":"f856501b5e7eea6dd736c5434c0ae4e5"},{"message":" (2.3ms) SELECT COUNT(*) FROM \"notifications\" WHERE \"notifications\".\"user_id\" = $1 AND (read = false AND notification_type = 6) [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270850736,"key":"6cb68ac624440c0a79c7a97fadd74228"},{"message":" UserStat Load (0.2ms) SELECT \"user_stats\".* FROM \"user_stats\" WHERE \"user_stats\".\"user_id\" = $1 LIMIT 1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270850737,"key":"671843efeaf1482601e90b20fd0c2e47"},{"message":" (0.7ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND \"topics\".\"user_id\" = $1 [[\"user_id\", 1]]","progname":null,"severity":0,"timestamp":1399270850739,"key":"64627aa726b1a608ba7d381400b6a5d9"},{"message":" (3.6ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270850744,"key":"009abbe8f105d00749efd8f2be1ab335"},{"message":" CACHE (0.0ms) SELECT COUNT(*) FROM \"topics\" WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND \"topics\".\"visible\" = 't' AND (topics.id NOT IN (SELECT COALESCE(topic_id, 0) FROM categories))","progname":null,"severity":0,"timestamp":1399270850745,"key":"f356f8b44734a764f0f65f6b633f236d"},{"message":" (33.3ms) SELECT u.id AS user_id,\n topics.id AS topic_id,\n topics.created_at,\n highest_post_number,\n last_read_post_number,\n c.name AS category_name,\n tu.notification_level\n FROM users u\n INNER JOIN user_stats AS us ON us.user_id = u.id\n FULL OUTER JOIN topics ON 1=1\n LEFT JOIN topic_users tu ON tu.topic_id = topics.id AND tu.user_id = u.id\n LEFT JOIN categories c ON c.id = topics.category_id\n WHERE u.id IN (1) AND\n topics.archetype <> 'private_message' AND\n ((tu.last_read_post_number < topics.highest_post_number AND COALESCE(tu.notification_level, 1) >= 2) OR (topics.created_at >= GREATEST(CASE\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -1 THEN u.created_at\n WHEN COALESCE(u.new_topic_duration_minutes, 2880) = -2 THEN COALESCE(u.previous_visit_at,u.created_at)\n ELSE ('2014-05-05 06:20:50.746712'::timestamp - INTERVAL '1 MINUTE' * COALESCE(u.new_topic_duration_minutes, 2880))\n END, us.new_since) AND tu.last_read_post_number IS NULL AND COALESCE(tu.notification_level, 2) >= 2)) AND\n (topics.visible OR u.admin OR u.moderator) AND\n topics.deleted_at IS NULL AND\n ( category_id IS NULL OR NOT c.read_restricted OR category_id IN (\n SELECT c2.id FROM categories c2\n JOIN category_groups cg ON cg.category_id = c2.id\n JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id\n WHERE c2.read_restricted )\n )\n AND NOT EXISTS( SELECT 1 FROM category_users cu\n WHERE cu.user_id = u.id AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0)\n\n ORDER BY topics.bumped_at DESC LIMIT 500","progname":null,"severity":0,"timestamp":1399270850780,"key":"df95a46731f3f3ed7338c8caefd3b455"},{"message":"Completed 500 Internal Server Error in 66ms","progname":null,"severity":1,"timestamp":1399270850781,"key":"3bb5eec3741f533b1b31f9e145e00ce9"},{"message":"\nNameError - uninitialized class variable @@db_spec_cache in RailsMultisite::ConnectionManagement:\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:173:in `connection_spec'\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:13:in `establish_connection'\n /home/sam/Source/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:38:in `with_connection'\n app/controllers/uploads_controller.rb:19:in `show'\n actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\n actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'\n actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\n activesupport (4.0.4) lib/active_support/callbacks.rb:493:in `_run__971792092623435619__process_action__callbacks'\n activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\n actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\n activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'\n activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'\n actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\n actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\n activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\n actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'\n actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'\n rack-mini-profiler (0.9.1) lib/mini_profiler/profiling_methods.rb:79:in `block in profile_method'\n actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'\n actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\n actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'\n actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'\n actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'\n actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'\n rack-protection (1.5.2) lib/rack/protection/frame_options.rb:31:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/strategy.rb:186:in `call!'\n omniauth (1.2.1) lib/omniauth/strategy.rb:164:in `call'\n omniauth (1.2.1) lib/omniauth/builder.rb:59:in `call'\n /home/sam/Source/logster/lib/logster/middleware/viewer.rb:36:in `call'\n rack (1.5.2) lib/rack/etag.rb:23:in `call'\n rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'\n rack (1.5.2) lib/rack/head.rb:11:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'\n rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'\n rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'\n message_bus (0.9.4) lib/message_bus/rack/middleware.rb:55:in `call'\n activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'\n activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\n activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__788907808888283613__call__callbacks'\n activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'\n actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\n better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\n railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'\n railties (4.0.4) lib/rails/rack/logger.rb:22:in `call'\n config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'\n config/initializers/silence_logger.rb:19:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'\n rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\n rack (1.5.2) lib/rack/runtime.rb:17:in `call'\n actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'\n rack (1.5.2) lib/rack/sendfile.rb:112:in `call'\n lib/middleware/missing_avatars.rb:21:in `call'\n lib/middleware/turbo_dev.rb:32:in `call'\n rack-mini-profiler (0.9.1) lib/mini_profiler/profiler.rb:215:in `call'\n railties (4.0.4) lib/rails/engine.rb:511:in `call'\n railties (4.0.4) lib/rails/application.rb:97:in `call'\n railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'\n rack (1.5.2) lib/rack/builder.rb:138:in `call'\n rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'\n rack (1.5.2) lib/rack/urlmap.rb:50:in `call'\n thin (1.6.1) lib/thin/connection.rb:82:in `block in pre_process'\n thin (1.6.1) lib/thin/connection.rb:80:in `pre_process'\n thin (1.6.1) lib/thin/connection.rb:55:in `process'\n thin (1.6.1) lib/thin/connection.rb:41:in `receive_data'\n eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'\n thin (1.6.1) lib/thin/backends/base.rb:73:in `start'\n thin (1.6.1) lib/thin/server.rb:162:in `start'\n thin (1.6.1) lib/thin/controllers/controller.rb:87:in `start'\n thin (1.6.1) lib/thin/runner.rb:200:in `run_command'\n thin (1.6.1) lib/thin/runner.rb:156:in `run!'\n thin (1.6.1) bin/thin:6:in `'\n bin/thin:16:in `
'\n","progname":null,"severity":4,"timestamp":1399270850793,"key":"4917405b4a13e83ae5886b43501b6118"},{"message":"Started GET \"/latest.json\" for 127.0.0.1 at 2014-05-05 16:20:51 +1000","progname":null,"severity":1,"timestamp":1399270851531,"key":"79f4777be72b2e51e2cc6f73fb0fa992"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270851545,"key":"372e4e9d8038601dd5d99e1ab30e7b69"},{"message":" User Load (0.7ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270851547,"key":"a436a64c0b4779dba6371d5b02d29c5c"},{"message":" (0.9ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270851550,"key":"5f69c2b419c90f2d51dab8818359c577"},{"message":" Draft Load (0.6ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270851551,"key":"62cfc507a90d19e0007c077b5cebac4f"},{"message":" SQL (80.9ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30","progname":null,"severity":0,"timestamp":1399270851637,"key":"83b2442944ecc9e0f148120ae67dfe2e"},{"message":" TopicUser Load (1.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (14748, 14719, 14735, 14726, 12257, 12525, 14741, 14732, 9768, 12156, 1127, 2349, 14711, 14740, 11497, 13421, 12050, 13950, 13667, 14044, 14733, 11851, 14047, 14727, 14713, 7237, 9552, 10473, 14731, 14724) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270851644,"key":"4ef00f8be935494e95e668e00fb7e38b"},{"message":" User Load (0.8ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (1, 9653, 8300, 8307, 5707, 32, 1868, 8222, 32, 6626, 9536, 3, 2770, 8325, 32, 4263, 7948, 1, 7948, 32, 1, 471, 6626, 4308, 9271, 2072, 3, 6626, 6866, 1, 8222, 9660, 6626, 8869, 1, 32, 924, 714, 1, 598, 32, 1875, 2600, 2664, 1038, 2487, 2291, 6626, 6613, 6695, 6548, 1, 8239, 3415, 2625, 3987, 1, 6626, 3035, 8021, 1, 6626, 9038, 1042, 9408, 9038, 9651, 5707, 3987, 5428, 6775, 7307, 1, 2, 32)","progname":null,"severity":0,"timestamp":1399270851648,"key":"5a515fd70d7546199dce6a2db1c139b5"},{"message":"Completed 200 OK in 146ms (Views: 0.1ms | ActiveRecord: 85.3ms)","progname":null,"severity":1,"timestamp":1399270851691,"key":"0fb8dab6b5d44293b427b125ce940b00"},{"message":"Started GET \"/latest.json?no_definitions=true&page=1\" for 127.0.0.1 at 2014-05-05 16:20:51 +1000","progname":null,"severity":1,"timestamp":1399270851967,"key":"9d634fec9519ab118acd76340dc742c2"},{"message":"Processing by ListController#latest as JSON","progname":null,"severity":1,"timestamp":1399270851980,"key":"8e32b54b33aa840f165ac33393855f2a"},{"message":" Parameters: {\"no_definitions\"=>\"true\", \"page\"=>\"1\"}","progname":null,"severity":1,"timestamp":1399270851980,"key":"4f540a6b0d82d0bf4e7851aebb81f195"},{"message":" CACHE (0.0ms) SELECT \"users\".* FROM \"users\" WHERE \"users\".\"auth_token\" = '3809b33162b3c5feb15de4841620f191' ORDER BY \"users\".\"id\" ASC LIMIT 1","progname":null,"severity":0,"timestamp":1399270851982,"key":"e009dae89326451c6fc1a141edd02ea7"},{"message":" (0.7ms) select sequence from draft_sequences where user_id = 1 and draft_key = 'new_topic'","progname":null,"severity":0,"timestamp":1399270851984,"key":"4946eabb68153b774381ecdcf7463cbf"},{"message":" Draft Load (0.3ms) SELECT \"drafts\".* FROM \"drafts\" WHERE \"drafts\".\"user_id\" = 1 AND \"drafts\".\"draft_key\" = 'new_topic' LIMIT 1","progname":null,"severity":0,"timestamp":1399270851986,"key":"612024b527aee483006b4eb5eab51a7e"},{"message":" SQL (84.6ms) SELECT \"topics\".\"id\" AS t0_r0, \"topics\".\"title\" AS t0_r1, \"topics\".\"last_posted_at\" AS t0_r2, \"topics\".\"created_at\" AS t0_r3, \"topics\".\"updated_at\" AS t0_r4, \"topics\".\"views\" AS t0_r5, \"topics\".\"posts_count\" AS t0_r6, \"topics\".\"user_id\" AS t0_r7, \"topics\".\"last_post_user_id\" AS t0_r8, \"topics\".\"reply_count\" AS t0_r9, \"topics\".\"featured_user1_id\" AS t0_r10, \"topics\".\"featured_user2_id\" AS t0_r11, \"topics\".\"featured_user3_id\" AS t0_r12, \"topics\".\"avg_time\" AS t0_r13, \"topics\".\"deleted_at\" AS t0_r14, \"topics\".\"highest_post_number\" AS t0_r15, \"topics\".\"image_url\" AS t0_r16, \"topics\".\"off_topic_count\" AS t0_r17, \"topics\".\"like_count\" AS t0_r18, \"topics\".\"incoming_link_count\" AS t0_r19, \"topics\".\"bookmark_count\" AS t0_r20, \"topics\".\"star_count\" AS t0_r21, \"topics\".\"category_id\" AS t0_r22, \"topics\".\"visible\" AS t0_r23, \"topics\".\"moderator_posts_count\" AS t0_r24, \"topics\".\"closed\" AS t0_r25, \"topics\".\"archived\" AS t0_r26, \"topics\".\"bumped_at\" AS t0_r27, \"topics\".\"has_summary\" AS t0_r28, \"topics\".\"vote_count\" AS t0_r29, \"topics\".\"archetype\" AS t0_r30, \"topics\".\"featured_user4_id\" AS t0_r31, \"topics\".\"notify_moderators_count\" AS t0_r32, \"topics\".\"spam_count\" AS t0_r33, \"topics\".\"illegal_count\" AS t0_r34, \"topics\".\"inappropriate_count\" AS t0_r35, \"topics\".\"pinned_at\" AS t0_r36, \"topics\".\"score\" AS t0_r37, \"topics\".\"percent_rank\" AS t0_r38, \"topics\".\"notify_user_count\" AS t0_r39, \"topics\".\"subtype\" AS t0_r40, \"topics\".\"slug\" AS t0_r41, \"topics\".\"auto_close_at\" AS t0_r42, \"topics\".\"auto_close_user_id\" AS t0_r43, \"topics\".\"auto_close_started_at\" AS t0_r44, \"topics\".\"deleted_by_id\" AS t0_r45, \"topics\".\"participant_count\" AS t0_r46, \"topics\".\"word_count\" AS t0_r47, \"topics\".\"excerpt\" AS t0_r48, \"topics\".\"pinned_globally\" AS t0_r49, \"categories\".\"id\" AS t1_r0, \"categories\".\"name\" AS t1_r1, \"categories\".\"color\" AS t1_r2, \"categories\".\"topic_id\" AS t1_r3, \"categories\".\"topic_count\" AS t1_r4, \"categories\".\"created_at\" AS t1_r5, \"categories\".\"updated_at\" AS t1_r6, \"categories\".\"user_id\" AS t1_r7, \"categories\".\"topics_year\" AS t1_r8, \"categories\".\"topics_month\" AS t1_r9, \"categories\".\"topics_week\" AS t1_r10, \"categories\".\"slug\" AS t1_r11, \"categories\".\"description\" AS t1_r12, \"categories\".\"text_color\" AS t1_r13, \"categories\".\"read_restricted\" AS t1_r14, \"categories\".\"auto_close_hours\" AS t1_r15, \"categories\".\"post_count\" AS t1_r16, \"categories\".\"latest_post_id\" AS t1_r17, \"categories\".\"latest_topic_id\" AS t1_r18, \"categories\".\"position\" AS t1_r19, \"categories\".\"parent_category_id\" AS t1_r20, \"categories\".\"posts_year\" AS t1_r21, \"categories\".\"posts_month\" AS t1_r22, \"categories\".\"posts_week\" AS t1_r23, \"categories\".\"email_in\" AS t1_r24, \"categories\".\"email_in_allow_strangers\" AS t1_r25, \"categories\".\"topics_day\" AS t1_r26, \"categories\".\"posts_day\" AS t1_r27, \"topic_only_relative_urls_categories\".\"id\" AS t2_r0, \"topic_only_relative_urls_categories\".\"title\" AS t2_r1, \"topic_only_relative_urls_categories\".\"last_posted_at\" AS t2_r2, \"topic_only_relative_urls_categories\".\"created_at\" AS t2_r3, \"topic_only_relative_urls_categories\".\"updated_at\" AS t2_r4, \"topic_only_relative_urls_categories\".\"views\" AS t2_r5, \"topic_only_relative_urls_categories\".\"posts_count\" AS t2_r6, \"topic_only_relative_urls_categories\".\"user_id\" AS t2_r7, \"topic_only_relative_urls_categories\".\"last_post_user_id\" AS t2_r8, \"topic_only_relative_urls_categories\".\"reply_count\" AS t2_r9, \"topic_only_relative_urls_categories\".\"featured_user1_id\" AS t2_r10, \"topic_only_relative_urls_categories\".\"featured_user2_id\" AS t2_r11, \"topic_only_relative_urls_categories\".\"featured_user3_id\" AS t2_r12, \"topic_only_relative_urls_categories\".\"avg_time\" AS t2_r13, \"topic_only_relative_urls_categories\".\"deleted_at\" AS t2_r14, \"topic_only_relative_urls_categories\".\"highest_post_number\" AS t2_r15, \"topic_only_relative_urls_categories\".\"image_url\" AS t2_r16, \"topic_only_relative_urls_categories\".\"off_topic_count\" AS t2_r17, \"topic_only_relative_urls_categories\".\"like_count\" AS t2_r18, \"topic_only_relative_urls_categories\".\"incoming_link_count\" AS t2_r19, \"topic_only_relative_urls_categories\".\"bookmark_count\" AS t2_r20, \"topic_only_relative_urls_categories\".\"star_count\" AS t2_r21, \"topic_only_relative_urls_categories\".\"category_id\" AS t2_r22, \"topic_only_relative_urls_categories\".\"visible\" AS t2_r23, \"topic_only_relative_urls_categories\".\"moderator_posts_count\" AS t2_r24, \"topic_only_relative_urls_categories\".\"closed\" AS t2_r25, \"topic_only_relative_urls_categories\".\"archived\" AS t2_r26, \"topic_only_relative_urls_categories\".\"bumped_at\" AS t2_r27, \"topic_only_relative_urls_categories\".\"has_summary\" AS t2_r28, \"topic_only_relative_urls_categories\".\"vote_count\" AS t2_r29, \"topic_only_relative_urls_categories\".\"archetype\" AS t2_r30, \"topic_only_relative_urls_categories\".\"featured_user4_id\" AS t2_r31, \"topic_only_relative_urls_categories\".\"notify_moderators_count\" AS t2_r32, \"topic_only_relative_urls_categories\".\"spam_count\" AS t2_r33, \"topic_only_relative_urls_categories\".\"illegal_count\" AS t2_r34, \"topic_only_relative_urls_categories\".\"inappropriate_count\" AS t2_r35, \"topic_only_relative_urls_categories\".\"pinned_at\" AS t2_r36, \"topic_only_relative_urls_categories\".\"score\" AS t2_r37, \"topic_only_relative_urls_categories\".\"percent_rank\" AS t2_r38, \"topic_only_relative_urls_categories\".\"notify_user_count\" AS t2_r39, \"topic_only_relative_urls_categories\".\"subtype\" AS t2_r40, \"topic_only_relative_urls_categories\".\"slug\" AS t2_r41, \"topic_only_relative_urls_categories\".\"auto_close_at\" AS t2_r42, \"topic_only_relative_urls_categories\".\"auto_close_user_id\" AS t2_r43, \"topic_only_relative_urls_categories\".\"auto_close_started_at\" AS t2_r44, \"topic_only_relative_urls_categories\".\"deleted_by_id\" AS t2_r45, \"topic_only_relative_urls_categories\".\"participant_count\" AS t2_r46, \"topic_only_relative_urls_categories\".\"word_count\" AS t2_r47, \"topic_only_relative_urls_categories\".\"excerpt\" AS t2_r48, \"topic_only_relative_urls_categories\".\"pinned_globally\" AS t2_r49 FROM \"topics\" LEFT OUTER JOIN \"categories\" ON \"categories\".\"id\" = \"topics\".\"category_id\" LEFT OUTER JOIN \"topics\" \"topic_only_relative_urls_categories\" ON \"topic_only_relative_urls_categories\".\"id\" = \"categories\".\"topic_id\" AND (\"topics\".\"deleted_at\" IS NULL) LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = 1) WHERE (\"topics\".\"deleted_at\" IS NULL) AND (topics.archetype <> 'private_message') AND (COALESCE(categories.topic_id, 0) <> topics.id) AND (NOT EXISTS(\n SELECT 1 FROM category_users cu\n WHERE cu.user_id = 1 AND\n cu.category_id = topics.category_id AND\n cu.notification_level = 0\n )) ORDER BY CASE\n WHEN topics.pinned_globally and (COALESCE(topics.pinned_at, '2010-01-01') > COALESCE(tu.cleared_pinned_at, '2010-01-01'))\n THEN '3000-01-01'\n ELSE topics.bumped_at\n END DESC LIMIT 30 OFFSET 30","progname":null,"severity":0,"timestamp":1399270852075,"key":"44265a0d7daed3ba46d55163c3dcfa0c"},{"message":" TopicUser Load (1.3ms) SELECT \"topic_users\".* FROM \"topic_users\" WHERE \"topic_users\".\"topic_id\" IN (5283, 10083, 14729, 11090, 14465, 5949, 14608, 14728, 14717, 14722, 14721, 14718, 14373, 14688, 9873, 14679, 14573, 12455, 11146, 14318, 14657, 14704, 6091, 14697, 14662, 13819, 10470, 14200, 6244, 232) AND \"topic_users\".\"user_id\" = 1","progname":null,"severity":0,"timestamp":1399270852081,"key":"5afca9ff7fdce52d9e2601973a4e8718"},{"message":" User Load (1.8ms) SELECT id, email, username, use_uploaded_avatar, uploaded_avatar_template, uploaded_avatar_id FROM \"users\" WHERE \"users\".\"id\" IN (4141, 9579, 3620, 1, 2291, 5651, 5331, 32, 1583, 6755, 32, 7519, 9378, 32, 6695, 5707, 6626, 7614, 1, 32, 3, 5372, 1, 9598, 3987, 1, 464, 9271, 6626, 7225, 9655, 3415, 9653, 3987, 1995, 374, 4549, 7991, 9639, 8617, 32, 2, 5351, 5564, 6548, 4263, 5707, 8300, 6060, 8883, 7743, 1, 32, 1496, 3415, 8803, 5351, 2072, 6283, 7229, 1995, 32, 9438, 1, 471, 4263, 8617, 2770, 2, 8810, 8492, 5351, 9271, 1, 32, 6626, 4754, 32, 1, 2981, 9650, 3062, 9550, 9536, 1, 6626, 7665, 9185, 8364, 6283, 9053, 3657, 9513, 1995, 5707, 9312, 6626, 2316, 2989, 1, 74, 8, 704, 714, 3382)","progname":null,"severity":0,"timestamp":1399270852086,"key":"d0712d23773c8aa1b8ebb1e4ff872be8"},{"message":"Completed 200 OK in 129ms (Views: 0.1ms | ActiveRecord: 88.7ms)","progname":null,"severity":1,"timestamp":1399270852110,"key":"59e3ce46a6dbcc73816405c60c7ba77c"}]