production_log_analyzer 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +27 -0
- data/Manifest.txt +11 -0
- data/README +121 -0
- data/Rakefile +62 -0
- data/bin/pl_analyze +50 -0
- data/lib/production_log/analyzer.rb +266 -0
- data/lib/production_log/parser.rb +144 -0
- data/lib/production_log/syslog_logger.rb +121 -0
- data/test/test.syslog.log +255 -0
- data/test/test_analyzer.rb +183 -0
- data/test/test_parser.rb +140 -0
- metadata +48 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
##
|
2
|
+
# LogParser parses a Syslog log file looking for lines logged by the 'rails'
|
3
|
+
# program. A typical log line looks like this:
|
4
|
+
#
|
5
|
+
# Mar 7 00:00:20 online1 rails[59600]: Person Load (0.001884) SELECT * FROM people WHERE id = 10519 LIMIT 1
|
6
|
+
#
|
7
|
+
# LogParser does not work with Rails' default logger because there is no way
|
8
|
+
# to group all the log output of a single request. You must use SyslogLogger.
|
9
|
+
|
10
|
+
module LogParser
|
11
|
+
|
12
|
+
##
|
13
|
+
# LogEntry contains a summary of log data for a single request.
|
14
|
+
|
15
|
+
class LogEntry
|
16
|
+
|
17
|
+
##
|
18
|
+
# Controller and action for this request
|
19
|
+
|
20
|
+
attr_reader :page
|
21
|
+
|
22
|
+
##
|
23
|
+
# Requesting IP
|
24
|
+
|
25
|
+
attr_reader :ip
|
26
|
+
|
27
|
+
##
|
28
|
+
# Time the request was made
|
29
|
+
|
30
|
+
attr_reader :time
|
31
|
+
|
32
|
+
##
|
33
|
+
# Array of SQL queries containing query type and time taken. The
|
34
|
+
# complete text of the SQL query is not saved to reduct memory usage.
|
35
|
+
|
36
|
+
attr_reader :queries
|
37
|
+
|
38
|
+
##
|
39
|
+
# Total request time, including database, render and other.
|
40
|
+
|
41
|
+
attr_reader :request_time
|
42
|
+
|
43
|
+
##
|
44
|
+
# Total render time.
|
45
|
+
|
46
|
+
attr_reader :render_time
|
47
|
+
|
48
|
+
##
|
49
|
+
# Total database time
|
50
|
+
|
51
|
+
attr_reader :db_time
|
52
|
+
|
53
|
+
##
|
54
|
+
# Creates a new LogEntry from the log data in +entry+.
|
55
|
+
|
56
|
+
def initialize(entry)
|
57
|
+
@page = nil
|
58
|
+
@ip = nil
|
59
|
+
@time = nil
|
60
|
+
@queries = []
|
61
|
+
@request_time = 0
|
62
|
+
@render_time = 0
|
63
|
+
@db_time = 0
|
64
|
+
|
65
|
+
parse entry
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Extracts log data from +entry+, which is an Array of lines from the
|
70
|
+
# same request.
|
71
|
+
|
72
|
+
def parse(entry)
|
73
|
+
entry.each do |line|
|
74
|
+
case line
|
75
|
+
when /^Parameters/, /^Cookie set/, /^Rendering/,
|
76
|
+
/^Redirected/ then
|
77
|
+
# nothing
|
78
|
+
when /^Processing ([\S]+) \(for (.+) at (.*)\)$/ then
|
79
|
+
@page = $1
|
80
|
+
@ip = $2
|
81
|
+
@time = $3
|
82
|
+
when /^Completed in ([\S]+) .+ Rendering: ([\S]+) .+ DB: ([\S]+)/ then
|
83
|
+
@request_time = $1.to_f
|
84
|
+
@render_time = $2.to_f
|
85
|
+
@db_time = $3.to_f
|
86
|
+
when /^Completed in ([\S]+) .+ DB: ([\S]+)/ then # Redirect
|
87
|
+
@request_time = $1.to_f
|
88
|
+
@render_time = 0
|
89
|
+
@db_time = $2.to_f
|
90
|
+
when /(.+?) \(([^)]+)\) / then
|
91
|
+
@queries << [$1, $2.to_f]
|
92
|
+
else
|
93
|
+
raise "Can't handle #{line.inspect}" if $TESTING
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def ==(other) # :nodoc:
|
99
|
+
other.class == self.class and
|
100
|
+
other.page == self.page and
|
101
|
+
other.ip == self.ip and
|
102
|
+
other.time == self.time and
|
103
|
+
other.queries == self.queries and
|
104
|
+
other.request_time == self.request_time and
|
105
|
+
other.render_time == self.render_time and
|
106
|
+
other.db_time == self.db_time
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
##
|
112
|
+
# Parses IO stream +stream+, creating a LogEntry for each recognizable log
|
113
|
+
# entry.
|
114
|
+
#
|
115
|
+
# Log entries are recognised as starting with Processing, continuing with
|
116
|
+
# the same process id through Completed.
|
117
|
+
|
118
|
+
def self.parse(stream) # :yields: log_entry
|
119
|
+
buckets = Hash.new { |h,k| h[k] = [] }
|
120
|
+
stream.each_line do |line|
|
121
|
+
line =~ / ([^ ]+) ([^ ]+)\[(\d+)\]: (.*)/
|
122
|
+
next if $2 != 'rails'
|
123
|
+
bucket = "#{$1}-#{$3}"
|
124
|
+
data = $4
|
125
|
+
|
126
|
+
buckets[bucket] << data
|
127
|
+
|
128
|
+
if data =~ /^Completed/ then
|
129
|
+
entry = buckets.delete bucket
|
130
|
+
if entry.first =~ /^Processing/ then
|
131
|
+
yield LogEntry.new(entry)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
buckets.each do |bucket, data|
|
137
|
+
yield LogEntry.new(data)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
142
|
+
|
143
|
+
# vim: ts=4 sts=4 sw=4
|
144
|
+
|
@@ -0,0 +1,121 @@
|
|
1
|
+
require 'syslog'
|
2
|
+
|
3
|
+
##
|
4
|
+
# This Logger logs messages to syslogd. Add it to your production environment
|
5
|
+
# so you can run pl_analyze on your log files.
|
6
|
+
#
|
7
|
+
# SyslogLogger logs everything. Tweak your syslog.conf to throw away messages
|
8
|
+
# you don't want, SyslogLogger ignores any calls to #level=.
|
9
|
+
#
|
10
|
+
# SyslogLogger logs messages using the 'rails' facility.
|
11
|
+
#
|
12
|
+
# = Sample usage
|
13
|
+
#
|
14
|
+
# == config/environment/production.rb
|
15
|
+
#
|
16
|
+
# Add the following lines:
|
17
|
+
#
|
18
|
+
# require 'production_log/syslog_logger'
|
19
|
+
# RAILS_DEFAULT_LOGGER = SyslogLogger.new
|
20
|
+
#
|
21
|
+
# == config/environment.rb
|
22
|
+
#
|
23
|
+
# In 0.10.0, change this line:
|
24
|
+
#
|
25
|
+
# RAILS_DEFAULT_LOGGER = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log")
|
26
|
+
#
|
27
|
+
# to:
|
28
|
+
#
|
29
|
+
# RAILS_DEFAULT_LOGGER ||= Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log")
|
30
|
+
#
|
31
|
+
# Other versions of Rails should have a similar change.
|
32
|
+
#
|
33
|
+
# == /etc/syslog.conf
|
34
|
+
#
|
35
|
+
# Add the following lines:
|
36
|
+
#
|
37
|
+
# !rails
|
38
|
+
# *.* /var/log/production.log
|
39
|
+
#
|
40
|
+
# Then touch /var/log/production.log and signal syslogd with a HUP
|
41
|
+
# (killall -HUP syslogd, on FreeBSD).
|
42
|
+
#
|
43
|
+
# == /etc/newsyslog.conf
|
44
|
+
#
|
45
|
+
# Add the following line:
|
46
|
+
#
|
47
|
+
# /var/log/production.log 640 7 * @T00 Z
|
48
|
+
#
|
49
|
+
# This creates a log file that is rotated every day at midnight, gzip'd, then
|
50
|
+
# kept for 7 days. Consult newsyslog.conf(5) for more details.
|
51
|
+
#
|
52
|
+
# Now restart your Rails app. Your production logs should now be showing up
|
53
|
+
# in /var/log/production.log. If you have mulitple machines, you can log them
|
54
|
+
# all to a central machine with remote syslog logging for analysis.
|
55
|
+
|
56
|
+
class SyslogLogger
|
57
|
+
|
58
|
+
##
|
59
|
+
# Faked log level for Rails' Logger compatibility.
|
60
|
+
|
61
|
+
attr_accessor :level
|
62
|
+
|
63
|
+
##
|
64
|
+
# Syslog is a module, so this constant holds our open logger.
|
65
|
+
|
66
|
+
SYSLOG = Syslog.open "rails"
|
67
|
+
|
68
|
+
##
|
69
|
+
# Map Logger warning types to syslog(3) warning types.
|
70
|
+
|
71
|
+
LOGGER_MAP = {
|
72
|
+
:fatal => :err,
|
73
|
+
:error => :warning,
|
74
|
+
:warn => :notice,
|
75
|
+
:info => :info,
|
76
|
+
:debug => :debug,
|
77
|
+
}
|
78
|
+
|
79
|
+
##
|
80
|
+
# Fill in dummy variables for Logger compatibility.
|
81
|
+
|
82
|
+
def initialize(*args)
|
83
|
+
@level = 0
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Dispatch to the correct syslog warning type.
|
88
|
+
|
89
|
+
def method_missing(meth, message)
|
90
|
+
SYSLOG.send LOGGER_MAP[meth], clean(message)
|
91
|
+
end
|
92
|
+
|
93
|
+
private
|
94
|
+
|
95
|
+
##
|
96
|
+
# Clean up messages so they're nice and pretty.
|
97
|
+
|
98
|
+
def clean(message)
|
99
|
+
message = message.dup
|
100
|
+
message.strip!
|
101
|
+
message.gsub!(/%/, '%%') # syslog(3) freaks on % (printf)
|
102
|
+
message.gsub!(/\e\[[^m]*m/, '') # remove useless ansi color codes
|
103
|
+
return message
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
if __FILE__ == $0 then
|
109
|
+
logger = SyslogLogger.new
|
110
|
+
|
111
|
+
message = "message from syslog_logger.rb logged using"
|
112
|
+
|
113
|
+
logger.info "info #{message} #{SyslogLogger::LOGGER_MAP[:info]}"
|
114
|
+
logger.fatal "fatal #{message} #{SyslogLogger::LOGGER_MAP[:fatal]}"
|
115
|
+
logger.warn "warn #{message} #{SyslogLogger::LOGGER_MAP[:warn]}"
|
116
|
+
logger.error "error #{message} #{SyslogLogger::LOGGER_MAP[:error]}"
|
117
|
+
logger.debug "debug #{message} #{SyslogLogger::LOGGER_MAP[:debug]}"
|
118
|
+
end
|
119
|
+
|
120
|
+
# vim: ts=4 sts=4 sw=4
|
121
|
+
|
@@ -0,0 +1,255 @@
|
|
1
|
+
Mar 7 00:00:00 online1 newsyslog[61307]: logfile turned over
|
2
|
+
Mar 7 00:00:20 online1 rails[59600]: Goal Load (0.002112) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 59133 ORDER BY score DESC LIMIT 3
|
3
|
+
Mar 7 00:00:20 online1 rails[59600]: Tag Load (0.001527) SELECT tags.*, count(*) as num_goals FROM tags_teams, tags, teams WHERE tags_teams.tag_id = tags.id AND tags_teams.team_id = teams.id AND teams.num_members > 0 AND teams.goal_id = 59133 GROUP BY tags.id ORDER BY num_goals DESC LIMIT 5
|
4
|
+
Mar 7 00:00:20 online1 rails[59600]: Rendering things/view within layouts/default
|
5
|
+
Mar 7 00:00:20 online1 rails[59600]: Person Load (0.001884) SELECT * FROM people WHERE id = 10519 LIMIT 1
|
6
|
+
Mar 7 00:00:20 online1 rails[59600]: Person Load (0.001159) SELECT * FROM people WHERE id = 10519 LIMIT 1
|
7
|
+
Mar 7 00:00:20 online1 rails[59600]: Rendering layouts/default (200 OK)
|
8
|
+
Mar 7 00:00:20 online1 rails[59600]: Completed in 0.300741 (3 reqs/sec) | Rendering: 0.049924 (16%) | DB: 0.092428 (30%)
|
9
|
+
Mar 7 00:00:25 online2 rails[59628]: Processing RssController#uber (for 67.18.200.5 at Mon Mar 07 00:00:25 CST 2005)
|
10
|
+
Mar 7 00:00:25 online2 rails[59628]: Parameters: {:id=>"author", :"rss/uber/author.html/uber/author"=>nil, :action=>"uber", :username=>"looch", :controller=>"rss"}
|
11
|
+
Mar 7 00:00:25 online2 rails[59628]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:25 GMT
|
12
|
+
Mar 7 00:00:25 online2 rails[59628]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:25 GMT
|
13
|
+
Mar 7 00:00:25 online2 rails[59628]: Browser Load (0.003963) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
14
|
+
Mar 7 00:00:25 online2 rails[59628]: Person Load (0.002445) SELECT * FROM people WHERE username = 'looch' AND active = '1' LIMIT 1
|
15
|
+
Mar 7 00:00:25 online2 rails[59628]: ProfileImage Load (0.001554) SELECT * FROM profile_images WHERE id = 2782 LIMIT 1
|
16
|
+
Mar 7 00:00:25 online2 rails[59628]: Rendering rss/rss2.0 (200 OK)
|
17
|
+
Mar 7 00:00:25 online1 rails[59628]: Processing RssController#uber (for 67.18.200.5 at Mon Mar 07 00:00:25 CST 2005)
|
18
|
+
Mar 7 00:00:25 online1 rails[59628]: Parameters: {:id=>"author", :"rss/uber/author.html/uber/author"=>nil, :action=>"uber", :username=>"looch", :controller=>"rss"}
|
19
|
+
Mar 7 00:00:25 online1 rails[59628]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:25 GMT
|
20
|
+
Mar 7 00:00:25 online1 rails[59628]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:25 GMT
|
21
|
+
Mar 7 00:00:25 online1 rails[59628]: Browser Load (0.003963) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
22
|
+
Mar 7 00:00:25 online1 rails[59628]: Person Load (0.002445) SELECT * FROM people WHERE username = 'looch' AND active = '1' LIMIT 1
|
23
|
+
Mar 7 00:00:25 online1 rails[59628]: ProfileImage Load (0.001554) SELECT * FROM profile_images WHERE id = 2782 LIMIT 1
|
24
|
+
Mar 7 00:00:25 online1 rails[59628]: Rendering rss/rss2.0 (200 OK)
|
25
|
+
Mar 7 00:00:25 online1 rails[59628]: Completed in 0.034519 (28 reqs/sec) | Rendering: 0.011770 (34%) | DB: 0.007962 (23%)
|
26
|
+
Mar 7 00:00:25 online2 rails[59628]: Completed in 0.034519 (28 reqs/sec) | Rendering: 0.011770 (34%) | DB: 0.007962 (23%)
|
27
|
+
Mar 7 00:00:27 online1 rails[59645]: Processing ThingsController#view (for 67.18.200.5 at Mon Mar 07 00:00:27 CST 2005)
|
28
|
+
Mar 7 00:00:27 online1 rails[59645]: Parameters: {:id=>"11891", :"things/view/11891.html/view/11891"=>nil, :action=>"view", :controller=>"things"}
|
29
|
+
Mar 7 00:00:27 online1 rails[59645]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:27 GMT
|
30
|
+
Mar 7 00:00:27 online1 rails[59645]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:27 GMT
|
31
|
+
Mar 7 00:00:27 online1 rails[59645]: Browser Load (0.001425) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
32
|
+
Mar 7 00:00:27 online1 rails[59645]: Goal Load (0.001303) SELECT * FROM goals WHERE id = '11891' LIMIT 1
|
33
|
+
Mar 7 00:00:27 online1 rails[59645]: TeamMember Load (0.002593) SELECT * FROM team_members WHERE goal_id = 11891 AND active_member = 1 AND goal_is_complete = 1 AND goal_is_complete = '1' ORDER BY num_entries DESC, updated_date DESC LIMIT 3
|
34
|
+
Mar 7 00:00:27 online1 rails[59645]: TeamMember Load (0.070738) SELECT * FROM team_members WHERE goal_id = 11891 AND active_member = 1 AND goal_is_complete = 0 AND goal_is_complete = '0' ORDER BY num_entries DESC, updated_date DESC LIMIT 10
|
35
|
+
Mar 7 00:00:27 online1 rails[59645]: Entry Load (0.003074) SELECT e.* FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 11891 AND e.active = 1 ORDER BY e.id DESC LIMIT 10
|
36
|
+
Mar 7 00:00:27 online1 rails[59645]: Entry Count (0.000956) SELECT count(*) as num_entries FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 11891 AND e.active = 1 AND e.active = 1
|
37
|
+
Mar 7 00:00:27 online1 rails[59645]: TeamMember Count (0.000993) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 11891
|
38
|
+
Mar 7 00:00:27 online1 rails[59645]: TeamMember Count (0.000878) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 11891
|
39
|
+
Mar 7 00:00:27 online1 rails[59645]: TeamMember Count (0.000878) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 11891
|
40
|
+
Mar 7 00:00:27 online1 rails[59645]: Goal Load (0.002212) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 11891 ORDER BY score DESC LIMIT 3
|
41
|
+
Mar 7 00:00:27 online1 rails[59645]: Tag Load (0.002522) SELECT tags.*, count(*) as num_goals FROM tags_teams, tags, teams WHERE tags_teams.tag_id = tags.id AND tags_teams.team_id = teams.id AND teams.num_members > 0 AND teams.goal_id = 11891 GROUP BY tags.id ORDER BY num_goals DESC LIMIT 5
|
42
|
+
Mar 7 00:00:27 online1 rails[59645]: Rendering things/view within layouts/default
|
43
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.018285) SELECT * FROM people WHERE id = 2526 LIMIT 1
|
44
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001736) SELECT * FROM people WHERE id = 6627 LIMIT 1
|
45
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001611) SELECT * FROM people WHERE id = 11889 LIMIT 1
|
46
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001879) SELECT * FROM people WHERE id = 12472 LIMIT 1
|
47
|
+
Mar 7 00:00:27 online1 rails[59645]: ProfileImage Load (0.001176) SELECT * FROM profile_images WHERE id = 6024 LIMIT 1
|
48
|
+
Mar 7 00:00:27 online1 rails[59645]: City Load (0.001226) SELECT * FROM cities WHERE id = 43 LIMIT 1
|
49
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001712) SELECT * FROM people WHERE id = 2576 LIMIT 1
|
50
|
+
Mar 7 00:00:27 online1 rails[59645]: ProfileImage Load (0.001464) SELECT * FROM profile_images WHERE id = 1579 LIMIT 1
|
51
|
+
Mar 7 00:00:27 online1 rails[59645]: City Load (0.001098) SELECT * FROM cities WHERE id = 409 LIMIT 1
|
52
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001300) SELECT * FROM people WHERE id = 2526 LIMIT 1
|
53
|
+
Mar 7 00:00:27 online1 rails[59645]: ProfileImage Load (0.001536) SELECT * FROM profile_images WHERE id = 1234 LIMIT 1
|
54
|
+
Mar 7 00:00:27 online1 rails[59645]: Person Load (0.001562) SELECT * FROM people WHERE id = 6627 LIMIT 1
|
55
|
+
Mar 7 00:00:27 online1 rails[59645]: Rendering layouts/default (200 OK)
|
56
|
+
Mar 7 00:00:27 online1 rails[59645]: Completed in 0.396183 (2 reqs/sec) | Rendering: 0.107987 (27%) | DB: 0.122158 (30%)
|
57
|
+
Mar 7 00:00:28 online1 rails[59629]: Processing PeopleController#view (for 67.18.200.5 at Mon Mar 07 00:00:28 CST 2005)
|
58
|
+
Mar 7 00:00:28 online1 rails[59629]: Parameters: {:id=>"denstat", :action=>"view", :controller=>"people", :"people/view/denstat.html/view/denstat"=>nil}
|
59
|
+
Mar 7 00:00:28 online1 rails[59629]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:28 GMT
|
60
|
+
Mar 7 00:00:28 online1 rails[59629]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:28 GMT
|
61
|
+
Mar 7 00:00:28 online1 rails[59629]: Browser Load (0.003869) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
62
|
+
Mar 7 00:00:28 online1 rails[59629]: Person Load (0.088823) SELECT * FROM people WHERE username = 'denstat' AND active = '1' LIMIT 1
|
63
|
+
Mar 7 00:00:28 online1 rails[59629]: ProfileImage Load (0.001174) SELECT * FROM profile_images WHERE id = 2031 LIMIT 1
|
64
|
+
Mar 7 00:00:28 online1 rails[59629]: TeamMember Load (0.004332) SELECT * FROM team_members WHERE person_id = 2693 AND active_member = '1'
|
65
|
+
Mar 7 00:00:28 online1 rails[59629]: Goal Load (0.010591) SELECT g.* FROM goals g, team_members tm WHERE g.id = tm.goal_id AND tm.person_id = 2693 AND tm.active_member <> 0
|
66
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.005076) SELECT t.* FROM teams t, team_members tm WHERE t.id = tm.team_id AND goal_is_complete = 0 AND active_member != 0 AND tm.person_id = 2693 ORDER BY sort_order, tm.joined_date
|
67
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.003954) SELECT t.* FROM teams t, team_members tm WHERE t.id = tm.team_id AND goal_is_complete = '1' AND active_member != '0' AND tm.person_id = 2693 ORDER BY tm.updated_date DESC LIMIT 10
|
68
|
+
Mar 7 00:00:28 online1 rails[59629]: Entry Load (0.010843) SELECT e.* FROM entries e, team_members tm, (SELECT team_id, max(id) recent_id FROM entries WHERE active <> 0 AND person_id = 2693 GROUP BY team_id) recent_entries WHERE e.id = recent_entries.recent_id AND tm.person_id = e.person_id AND tm.team_id = e.team_id AND tm.active_member <> 0
|
69
|
+
Mar 7 00:00:28 online1 rails[59629]: Rendering people/view within layouts/default
|
70
|
+
Mar 7 00:00:28 online1 rails[59629]: ProfileImage Load (0.001088) SELECT * FROM profile_images WHERE id = 2031 LIMIT 1
|
71
|
+
Mar 7 00:00:28 online1 rails[59629]: City Load (0.000689) SELECT * FROM cities WHERE id = 1170 LIMIT 1
|
72
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.001622) SELECT * FROM teams WHERE id = 132991 LIMIT 1
|
73
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.001059) SELECT * FROM teams WHERE id = 132980 LIMIT 1
|
74
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.001117) SELECT * FROM teams WHERE id = 129534 LIMIT 1
|
75
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.001104) SELECT * FROM teams WHERE id = 126799 LIMIT 1
|
76
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.015325) SELECT * FROM teams WHERE id = 124130 LIMIT 1
|
77
|
+
Mar 7 00:00:28 online1 rails[59629]: Team Load (0.001067) SELECT * FROM teams WHERE id = 121991 LIMIT 1
|
78
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001169) SELECT * FROM teams WHERE id = 121978 LIMIT 1
|
79
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001264) SELECT * FROM teams WHERE id = 121976 LIMIT 1
|
80
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001131) SELECT * FROM teams WHERE id = 121971 LIMIT 1
|
81
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.000970) SELECT * FROM teams WHERE id = 121967 LIMIT 1
|
82
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001507) SELECT * FROM teams WHERE id = 121868 LIMIT 1
|
83
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.075690) SELECT * FROM teams WHERE id = 69373 LIMIT 1
|
84
|
+
Mar 7 00:00:29 online1 rails[60654]: Processing TeamsController#progress (for 220.255.60.111; 165.21.154.137 at Mon Mar 07 00:00:29 CST 2005)
|
85
|
+
Mar 7 00:00:29 online1 rails[60654]: Parameters: {:id=>"35926", :action=>"progress", :"teams/progress/35926.html/progress/35926"=>nil, :controller=>"teams"}
|
86
|
+
Mar 7 00:00:29 online1 rails[59627]: Processing ThingsController#view (for 67.18.200.5 at Mon Mar 07 00:00:29 CST 2005)
|
87
|
+
Mar 7 00:00:29 online1 rails[59627]: Parameters: {:id=>"19986", :action=>"view", :"things/view/19986.html/view/19986"=>nil, :controller=>"things"}
|
88
|
+
Mar 7 00:00:29 online1 rails[59627]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:29 GMT
|
89
|
+
Mar 7 00:00:29 online1 rails[59627]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:29 GMT
|
90
|
+
Mar 7 00:00:29 online1 rails[60654]: Browser Load (0.204679) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
91
|
+
Mar 7 00:00:29 online1 rails[59627]: Browser Load (0.028144) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
92
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.201582) SELECT * FROM teams WHERE id = 69343 LIMIT 1
|
93
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001294) SELECT * FROM teams WHERE id = 65942 LIMIT 1
|
94
|
+
Mar 7 00:00:29 online1 rails[59627]: Goal Load (0.001371) SELECT * FROM goals WHERE id = '19986' LIMIT 1
|
95
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.013834) SELECT * FROM teams WHERE id = 65932 LIMIT 1
|
96
|
+
Mar 7 00:00:29 online1 rails[59627]: TeamMember Load (0.014705) SELECT * FROM team_members WHERE goal_id = 19986 AND active_member = 1 AND goal_is_complete = 1 AND goal_is_complete = '1' ORDER BY num_entries DESC, updated_date DESC LIMIT 3
|
97
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001222) SELECT * FROM teams WHERE id = 27367 LIMIT 1
|
98
|
+
Mar 7 00:00:29 online1 rails[59627]: TeamMember Load (0.002019) SELECT * FROM team_members WHERE goal_id = 19986 AND active_member = 1 AND goal_is_complete = 0 AND goal_is_complete = '0' ORDER BY num_entries DESC, updated_date DESC LIMIT 10
|
99
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.004668) SELECT * FROM teams WHERE id = 42378 LIMIT 1
|
100
|
+
Mar 7 00:00:29 online1 rails[59627]: Entry Load (0.005880) SELECT e.* FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 19986 AND e.active = 1 ORDER BY e.id DESC LIMIT 10
|
101
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.001271) SELECT * FROM teams WHERE id = 27314 LIMIT 1
|
102
|
+
Mar 7 00:00:29 online1 rails[59627]: Entry Count (0.001063) SELECT count(*) as num_entries FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 19986 AND e.active = 1 AND e.active = 1
|
103
|
+
Mar 7 00:00:29 online1 rails[59629]: Team Load (0.009752) SELECT * FROM teams WHERE id = 27306 LIMIT 1
|
104
|
+
Mar 7 00:00:29 online1 rails[59627]: TeamMember Count (0.015829) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 19986
|
105
|
+
Mar 7 00:00:29 online1 rails[59627]: TeamMember Count (0.000884) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 19986
|
106
|
+
Mar 7 00:00:29 online1 rails[59627]: TeamMember Count (0.000809) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 19986
|
107
|
+
Mar 7 00:00:29 online1 rails[59629]: TeamMember Count (0.001410) SELECT COUNT(*) FROM team_members WHERE active_member = 1 and goal_is_complete = 1 and person_id = 2693
|
108
|
+
Mar 7 00:00:29 online1 rails[59629]: Person Load (0.017762) SELECT p.*, count(*) as num_teams_in_common FROM people p, team_members tms, team_members tmp WHERE tmp.person_id = p.id AND tms.team_id = tmp.team_id AND tms.person_id = 2693 AND tms.active_member <> 0 AND tms.goal_is_complete = 0 AND tmp.person_id <> 2693 AND tmp.active_member <> 0 AND tmp.goal_is_complete = 0 GROUP BY p.id ORDER BY num_teams_in_common DESC, p.last_name
|
109
|
+
Mar 7 00:00:29 online1 rails[59629]: Rendering layouts/default (200 OK)
|
110
|
+
Mar 7 00:00:29 online1 rails[59629]: Completed in 1.102098 (0 reqs/sec) | Rendering: 0.695476 (63%) | DB: 0.486258 (44%)
|
111
|
+
Mar 7 00:00:29 online1 rails[59635]: Processing ThingsController#view (for 67.18.200.5 at Mon Mar 07 00:00:29 CST 2005)
|
112
|
+
Mar 7 00:00:29 online1 rails[59635]: Parameters: {:id=>"9794", :action=>"view", :"things/view/9794.html/view/9794"=>nil, :controller=>"things"}
|
113
|
+
Mar 7 00:00:29 online1 rails[59635]: Cookie set: auth=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:29 GMT
|
114
|
+
Mar 7 00:00:29 online1 rails[59635]: Cookie set: ubid=STUFF; path=/; expires=Thu, 05 Mar 2015 06:00:29 GMT
|
115
|
+
Mar 7 00:00:29 online1 rails[59635]: Browser Load (0.001218) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
116
|
+
Mar 7 00:00:29 online1 rails[59635]: Goal Load (0.001052) SELECT * FROM goals WHERE id = '9794' LIMIT 1
|
117
|
+
Mar 7 00:00:29 online1 rails[59627]: Goal Load (0.002577) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 19986 ORDER BY score DESC LIMIT 3
|
118
|
+
Mar 7 00:00:29 online1 rails[60654]: Team Load (0.001341) SELECT * FROM teams WHERE id = '35926' LIMIT 1
|
119
|
+
Mar 7 00:00:29 online1 rails[59627]: Tag Load (0.002195) SELECT tags.*, count(*) as num_goals FROM tags_teams, tags, teams WHERE tags_teams.tag_id = tags.id AND tags_teams.team_id = teams.id AND teams.num_members > 0 AND teams.goal_id = 19986 GROUP BY tags.id ORDER BY num_goals DESC LIMIT 5
|
120
|
+
Mar 7 00:00:29 online1 rails[59627]: Rendering things/view within layouts/default
|
121
|
+
Mar 7 00:00:29 online1 rails[59627]: Person Load (0.002223) SELECT * FROM people WHERE id = 1694 LIMIT 1
|
122
|
+
Mar 7 00:00:29 online1 rails[59635]: TeamMember Load (0.102165) SELECT * FROM team_members WHERE goal_id = 9794 AND active_member = 1 AND goal_is_complete = 1 AND goal_is_complete = '1' ORDER BY num_entries DESC, updated_date DESC LIMIT 3
|
123
|
+
Mar 7 00:00:29 online1 rails[60654]: Entry Load (0.122496) SELECT * FROM entries WHERE team_id = 35926 AND active = 1
|
124
|
+
Mar 7 00:00:29 online1 rails[59635]: TeamMember Load (0.002217) SELECT * FROM team_members WHERE goal_id = 9794 AND active_member = 1 AND goal_is_complete = 0 AND goal_is_complete = '0' ORDER BY num_entries DESC, updated_date DESC LIMIT 10
|
125
|
+
Mar 7 00:00:29 online1 rails[60654]: TeamMember Load (0.001972) SELECT * FROM team_members WHERE team_id = 35926 AND active_member = 1
|
126
|
+
Mar 7 00:00:29 online1 rails[59635]: Entry Load (0.004002) SELECT e.* FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 9794 AND e.active = 1 ORDER BY e.id DESC LIMIT 10
|
127
|
+
Mar 7 00:00:29 online1 rails[60654]: Person Load (0.004097) SELECT * FROM people WHERE id = 3357 LIMIT 1
|
128
|
+
Mar 7 00:00:29 online1 rails[59635]: Entry Count (0.001231) SELECT count(*) as num_entries FROM entries e, teams t WHERE e.team_id = t.id AND t.goal_id = 9794 AND e.active = 1 AND e.active = 1
|
129
|
+
Mar 7 00:00:29 online1 rails[59635]: TeamMember Count (0.001088) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 9794
|
130
|
+
Mar 7 00:00:29 online1 rails[60654]: Redirected to http://www.43things.com/people/progress/swirlygirl/35926
|
131
|
+
Mar 7 00:00:29 online1 rails[59635]: TeamMember Count (0.001411) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 9794
|
132
|
+
Mar 7 00:00:29 online1 rails[60654]: Goal Load (0.001213) SELECT * FROM goals WHERE id = 225 LIMIT 1
|
133
|
+
Mar 7 00:00:29 online1 rails[59635]: TeamMember Count (0.001344) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 9794
|
134
|
+
Mar 7 00:00:29 online1 rails[59627]: Person Load (0.090841) SELECT * FROM people WHERE id = 4350 LIMIT 1
|
135
|
+
Mar 7 00:00:29 online1 rails[59627]: ProfileImage Load (0.001119) SELECT * FROM profile_images WHERE id = 2322 LIMIT 1
|
136
|
+
Mar 7 00:00:29 online1 rails[59627]: City Load (0.000659) SELECT * FROM cities WHERE id = 819 LIMIT 1
|
137
|
+
Mar 7 00:00:29 online1 rails[59627]: Person Load (0.001279) SELECT * FROM people WHERE id = 1694 LIMIT 1
|
138
|
+
Mar 7 00:00:29 online1 rails[59627]: ProfileImage Load (0.001170) SELECT * FROM profile_images WHERE id = 1945 LIMIT 1
|
139
|
+
Mar 7 00:00:29 online1 rails[59627]: Rendering layouts/default (200 OK)
|
140
|
+
Mar 7 00:00:29 online1 rails[60654]: Goal Load (0.002178) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 225 ORDER BY score DESC LIMIT 3
|
141
|
+
Mar 7 00:00:29 online1 rails[59627]: Completed in 0.491760 (2 reqs/sec) | Rendering: 0.197126 (40%) | DB: 0.172767 (35%)
|
142
|
+
Mar 7 00:00:30 online1 rails[59635]: Goal Load (0.240670) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 9794 ORDER BY score DESC LIMIT 3
|
143
|
+
Mar 7 00:00:30 online1 rails[59635]: Tag Load (0.191137) SELECT tags.*, count(*) as num_goals FROM tags_teams, tags, teams WHERE tags_teams.tag_id = tags.id AND tags_teams.team_id = teams.id AND teams.num_members > 0 AND teams.goal_id = 9794 GROUP BY tags.id ORDER BY num_goals DESC LIMIT 5
|
144
|
+
Mar 7 00:00:30 online1 rails[59635]: Rendering things/view within layouts/default
|
145
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.004756) SELECT * FROM people WHERE id = 4758 LIMIT 1
|
146
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.007942) SELECT * FROM profile_images WHERE id = 2557 LIMIT 1
|
147
|
+
Mar 7 00:00:30 online1 rails[59635]: Team Load (0.007545) SELECT * FROM teams WHERE id = 56225 LIMIT 1
|
148
|
+
Mar 7 00:00:30 online1 rails[60654]: TeamMember Count (0.558625) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
149
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.003433) SELECT * FROM people WHERE id = 1674 LIMIT 1
|
150
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.007808) SELECT * FROM people WHERE id = 1674 LIMIT 1
|
151
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.008622) SELECT * FROM profile_images WHERE id = 751 LIMIT 1
|
152
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.007911) SELECT * FROM cities WHERE id = 164 LIMIT 1
|
153
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.008706) SELECT * FROM people WHERE id = 7887 LIMIT 1
|
154
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.007501) SELECT * FROM profile_images WHERE id = 4135 LIMIT 1
|
155
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.018941) SELECT * FROM cities WHERE id = 598 LIMIT 1
|
156
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.007344) SELECT * FROM people WHERE id = 11610 LIMIT 1
|
157
|
+
Mar 7 00:00:30 online1 rails[60654]: TeamMember Count (0.135848) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
158
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.075532) SELECT * FROM people WHERE id = 8694 LIMIT 1
|
159
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.009264) SELECT * FROM profile_images WHERE id = 4519 LIMIT 1
|
160
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.007255) SELECT * FROM cities WHERE id = 808 LIMIT 1
|
161
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.009140) SELECT * FROM people WHERE id = 7413 LIMIT 1
|
162
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.007755) SELECT * FROM profile_images WHERE id = 3908 LIMIT 1
|
163
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.007233) SELECT * FROM cities WHERE id = 732 LIMIT 1
|
164
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.008803) SELECT * FROM people WHERE id = 7412 LIMIT 1
|
165
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.008236) SELECT * FROM profile_images WHERE id = 4743 LIMIT 1
|
166
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.007333) SELECT * FROM cities WHERE id = 156 LIMIT 1
|
167
|
+
Mar 7 00:00:30 online1 rails[60654]: TeamMember Count (0.111128) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
168
|
+
Mar 7 00:00:30 online1 rails[60654]: Completed in 1.469788 (0 reqs/sec) | DB: 1.143577 (77%)
|
169
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.003778) SELECT * FROM people WHERE id = 4765 LIMIT 1
|
170
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.010916) SELECT * FROM profile_images WHERE id = 2571 LIMIT 1
|
171
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.002019) SELECT * FROM people WHERE id = 1452 LIMIT 1
|
172
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.001126) SELECT * FROM profile_images WHERE id = 5516 LIMIT 1
|
173
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.011705) SELECT * FROM cities WHERE id = 1061 LIMIT 1
|
174
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.002113) SELECT * FROM people WHERE id = 895 LIMIT 1
|
175
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.001151) SELECT * FROM profile_images WHERE id = 420 LIMIT 1
|
176
|
+
Mar 7 00:00:30 online1 rails[59635]: City Load (0.000736) SELECT * FROM cities WHERE id = 164 LIMIT 1
|
177
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.001225) SELECT * FROM people WHERE id = 1674 LIMIT 1
|
178
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.001099) SELECT * FROM profile_images WHERE id = 751 LIMIT 1
|
179
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.016354) SELECT * FROM people WHERE id = 4758 LIMIT 1
|
180
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.078197) SELECT * FROM profile_images WHERE id = 2557 LIMIT 1
|
181
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.001518) SELECT * FROM people WHERE id = 1674 LIMIT 1
|
182
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.001268) SELECT * FROM profile_images WHERE id = 751 LIMIT 1
|
183
|
+
Mar 7 00:00:30 online1 rails[59635]: Person Load (0.001255) SELECT * FROM people WHERE id = 1674 LIMIT 1
|
184
|
+
Mar 7 00:00:30 online1 rails[59635]: ProfileImage Load (0.001137) SELECT * FROM profile_images WHERE id = 751 LIMIT 1
|
185
|
+
Mar 7 00:00:30 online1 rails[59635]: Rendering layouts/default (200 OK)
|
186
|
+
Mar 7 00:00:30 online1 rails[59635]: Completed in 1.259728 (0 reqs/sec) | Rendering: 0.505973 (40%) | DB: 0.914192 (72%)
|
187
|
+
Mar 7 00:00:30 online1 rails[59627]: Processing PeopleController#progress (for 220.255.60.111; 165.21.154.158 at Mon Mar 07 00:00:30 CST 2005)
|
188
|
+
Mar 7 00:00:30 online1 rails[59627]: Parameters: {:id=>"swirlygirl", :on=>"35926", :action=>"progress", :"people/progress/swirlygirl/35926.html/progress/swirlygirl/35926"=>nil, :controller=>"people"}
|
189
|
+
Mar 7 00:00:30 online1 rails[59627]: Browser Load (0.000760) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
190
|
+
Mar 7 00:00:30 online1 rails[59627]: Person Load (0.001974) SELECT * FROM people WHERE username = 'swirlygirl' LIMIT 1
|
191
|
+
Mar 7 00:00:30 online1 rails[59627]: Team Load (0.001060) SELECT * FROM teams WHERE id = '35926' LIMIT 1
|
192
|
+
Mar 7 00:00:30 online1 rails[59627]: TeamMember Load (0.001061) SELECT * FROM team_members WHERE team_id = 35926 AND active_member = 1
|
193
|
+
Mar 7 00:00:30 online1 rails[59627]: Entry Load (0.004121) SELECT * FROM entries WHERE team_id = 35926 AND person_id = 3357 AND active = 1 ORDER BY created_date DESC LIMIT 0, 20
|
194
|
+
Mar 7 00:00:30 online1 rails[59627]: Tag Load (0.001446) SELECT t.*, j.* FROM tags_teams j, tags t WHERE t.id = j.tag_id AND j.team_id = 35926 ORDER BY t.id
|
195
|
+
Mar 7 00:00:30 online1 rails[59627]: Goal Load (0.000904) SELECT * FROM goals WHERE id = 225 LIMIT 1
|
196
|
+
Mar 7 00:00:31 online1 rails[60654]: Processing PeopleController#view (for 67.18.200.5 at Mon Mar 07 00:00:31 CST 2005)
|
197
|
+
Mar 7 00:00:31 online1 rails[60654]: Parameters: {:id=>"elizabeth", :action=>"view", :"people/view/elizabeth.html/view/elizabeth"=>nil, :controller=>"people"}
|
198
|
+
Mar 7 00:00:31 online1 rails[60654]: Person Load (0.012043) SELECT * FROM people WHERE id = 2077 LIMIT 1
|
199
|
+
Mar 7 00:00:31 online1 rails[60654]: Person Load (0.005866) SELECT * FROM people WHERE username = 'elizabeth' AND active = '1' LIMIT 1
|
200
|
+
Mar 7 00:00:31 online1 rails[60654]: ProfileImage Load (0.007170) SELECT * FROM profile_images WHERE id = 2153 LIMIT 1
|
201
|
+
Mar 7 00:00:31 online1 rails[60654]: TeamMember Load (0.011367) SELECT * FROM team_members WHERE person_id = 4042 AND active_member = '1'
|
202
|
+
Mar 7 00:00:31 online1 rails[60654]: Goal Load (0.007064) SELECT g.* FROM goals g, team_members tm WHERE g.id = tm.goal_id AND tm.person_id = 4042 AND tm.active_member <> 0
|
203
|
+
Mar 7 00:00:31 online1 rails[60654]: Team Load (0.007723) SELECT t.* FROM teams t, team_members tm WHERE t.id = tm.team_id AND goal_is_complete = 0 AND active_member != 0 AND tm.person_id = 4042 ORDER BY sort_order, tm.joined_date
|
204
|
+
Mar 7 00:00:31 online1 rails[60654]: Team Load (0.007425) SELECT t.* FROM teams t, team_members tm WHERE t.id = tm.team_id AND goal_is_complete = '1' AND active_member != '0' AND tm.person_id = 4042 ORDER BY tm.updated_date DESC LIMIT 10
|
205
|
+
Mar 7 00:00:31 online1 rails[59627]: Tag Load (0.162564) SELECT tags.*, count(*) as num_goals FROM tags_teams, tags, teams WHERE tags_teams.tag_id = tags.id AND tags_teams.team_id = teams.id AND teams.num_members > 0 AND teams.goal_id = 225 GROUP BY tags.id ORDER BY num_goals DESC LIMIT 5
|
206
|
+
Mar 7 00:00:31 online1 rails[60654]: Entry Load (0.005561) SELECT e.* FROM entries e, team_members tm, (SELECT team_id, max(id) recent_id FROM entries WHERE active <> 0 AND person_id = 4042 GROUP BY team_id) recent_entries WHERE e.id = recent_entries.recent_id AND tm.person_id = e.person_id AND tm.team_id = e.team_id AND tm.active_member <> 0
|
207
|
+
Mar 7 00:00:31 online1 rails[60654]: Rendering people/view within layouts/default
|
208
|
+
Mar 7 00:00:31 online1 rails[60654]: FlickrPhoto Load (0.001567) SELECT * FROM flickr_photos WHERE person_id = 4042
|
209
|
+
Mar 7 00:00:31 online1 rails[60654]: ProfileImage Load (0.013853) SELECT * FROM profile_images WHERE id = 2153 LIMIT 1
|
210
|
+
Mar 7 00:00:31 online1 rails[60654]: City Load (0.000694) SELECT * FROM cities WHERE id = 5 LIMIT 1
|
211
|
+
Mar 7 00:00:31 online1 rails[59627]: Goal Load (0.002303) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 225 ORDER BY score DESC LIMIT 3
|
212
|
+
Mar 7 00:00:31 online1 rails[59627]: TeamMember Count (0.000653) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
213
|
+
Mar 7 00:00:31 online1 rails[59627]: TeamMember Count (0.000800) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
214
|
+
Mar 7 00:00:31 online1 rails[59627]: TeamMember Count (0.014575) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
215
|
+
Mar 7 00:00:31 online1 rails[60654]: TeamMember Count (0.006965) SELECT COUNT(*) FROM team_members WHERE active_member = 1 and goal_is_complete = 1 and person_id = 4042
|
216
|
+
Mar 7 00:00:31 online1 rails[59627]: TeamMember Load (0.116729) SELECT * FROM team_members WHERE goal_id = 225 AND active_member = 1 AND goal_is_complete = 1 AND person_id <> '3357' ORDER BY updated_date DESC LIMIT 3
|
217
|
+
Mar 7 00:00:31 online1 rails[59627]: Rendering people/progress within layouts/default
|
218
|
+
Mar 7 00:00:31 online1 rails[59627]: ProfileImage Load (0.021914) SELECT * FROM profile_images WHERE id = 1770 LIMIT 1
|
219
|
+
Mar 7 00:00:31 online1 rails[59627]: Person Load (0.001863) SELECT * FROM people WHERE id = 6731 LIMIT 1
|
220
|
+
Mar 7 00:00:31 online1 rails[60654]: Person Load (0.101821) SELECT p.*, count(*) as num_teams_in_common FROM people p, team_members tms, team_members tmp WHERE tmp.person_id = p.id AND tms.team_id = tmp.team_id AND tms.person_id = 4042 AND tms.active_member <> 0 AND tms.goal_is_complete = 0 AND tmp.person_id <> 4042 AND tmp.active_member <> 0 AND tmp.goal_is_complete = 0 GROUP BY p.id ORDER BY num_teams_in_common DESC, p.last_name
|
221
|
+
Mar 7 00:00:31 online1 rails[60654]: Rendering layouts/default (200 OK)
|
222
|
+
Mar 7 00:00:31 online1 rails[60654]: Completed in 0.360210 (2 reqs/sec) | Rendering: 0.277921 (77%) | DB: 0.189119 (52%)
|
223
|
+
Mar 7 00:00:31 online1 rails[59627]: ProfileImage Load (0.090583) SELECT * FROM profile_images WHERE id = 6434 LIMIT 1
|
224
|
+
Mar 7 00:00:31 online1 rails[59627]: Team Load (0.001336) SELECT * FROM teams WHERE id = 79140 LIMIT 1
|
225
|
+
Mar 7 00:00:31 online1 rails[59627]: Person Load (0.001677) SELECT * FROM people WHERE id = 660 LIMIT 1
|
226
|
+
Mar 7 00:00:31 online1 rails[59627]: ProfileImage Load (0.001106) SELECT * FROM profile_images WHERE id = 370 LIMIT 1
|
227
|
+
Mar 7 00:00:31 online1 rails[59627]: Team Load (0.001231) SELECT * FROM teams WHERE id = 15523 LIMIT 1
|
228
|
+
Mar 7 00:00:31 online1 rails[59627]: Person Load (0.001581) SELECT * FROM people WHERE id = 1900 LIMIT 1
|
229
|
+
Mar 7 00:00:31 online1 rails[59627]: ProfileImage Load (0.001111) SELECT * FROM profile_images WHERE id = 3207 LIMIT 1
|
230
|
+
Mar 7 00:00:31 online1 rails[59627]: Team Load (0.001221) SELECT * FROM teams WHERE id = 37202 LIMIT 1
|
231
|
+
Mar 7 00:00:31 online1 rails[59627]: TeamMember Load (0.379744) SELECT * FROM team_members WHERE goal_id = 225 AND active_member = 1 AND goal_is_complete = 1
|
232
|
+
Mar 7 00:00:31 online1 rails[59627]: Goal Load (0.005007) SELECT * FROM goals WHERE id = 225 LIMIT 1
|
233
|
+
Mar 7 00:00:31 online1 rails[59627]: Cheer Load (0.004291) SELECT * FROM cheers WHERE entity_id = 36073 AND entity_type_id = 4
|
234
|
+
Mar 7 00:00:31 online1 rails[59627]: Person Load (0.008794) SELECT * FROM people WHERE id = 3357 LIMIT 1
|
235
|
+
Mar 7 00:00:31 online1 rails[59627]: Rendering layouts/default (200 OK)
|
236
|
+
Mar 7 00:00:31 online1 rails[59627]: Completed in 0.977398 (1 reqs/sec) | Rendering: 0.604444 (61%) | DB: 0.830409 (84%)
|
237
|
+
Mar 7 00:00:32 online1 rails[59627]: Processing TeamsController#progress (for 220.255.60.111; 165.21.154.137 at Mon Mar 07 00:00:32 CST 2005)
|
238
|
+
Mar 7 00:00:32 online1 rails[59627]: Parameters: {:id=>"35926", :action=>"progress", :"teams/progress/35926.html/progress/35926"=>nil, :controller=>"teams"}
|
239
|
+
Mar 7 00:00:32 online1 rails[59627]: Browser Load (0.001007) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
240
|
+
Mar 7 00:00:32 online1 rails[59627]: Team Load (0.000973) SELECT * FROM teams WHERE id = '35926' LIMIT 1
|
241
|
+
Mar 7 00:00:32 online1 rails[59627]: Entry Load (0.001138) SELECT * FROM entries WHERE team_id = 35926 AND active = 1
|
242
|
+
Mar 7 00:00:32 online1 rails[59627]: TeamMember Load (0.001781) SELECT * FROM team_members WHERE team_id = 35926 AND active_member = 1
|
243
|
+
Mar 7 00:00:32 online1 rails[59627]: Person Load (0.030966) SELECT * FROM people WHERE id = 3357 LIMIT 1
|
244
|
+
Mar 7 00:00:32 online1 rails[59627]: Redirected to http://www.43things.com/people/progress/swirlygirl/35926
|
245
|
+
Mar 7 00:00:32 online1 rails[59627]: Goal Load (0.000835) SELECT * FROM goals WHERE id = 225 LIMIT 1
|
246
|
+
Mar 7 00:00:32 online1 rails[59627]: Goal Load (0.009688) SELECT g.*, gs.score as score FROM goals g, goal_similarities gs WHERE g.id = gs.similar_goal_id AND g.num_active_people > 0 AND gs.goal_similarity_type_id = 1 AND gs.goal_id = 225 ORDER BY score DESC LIMIT 3
|
247
|
+
Mar 7 00:00:32 online1 rails[59627]: TeamMember Count (0.007285) SELECT count(*) as count FROM team_members WHERE worth_it = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
248
|
+
Mar 7 00:00:32 online1 rails[59627]: TeamMember Count (0.095106) SELECT count(*) as count FROM team_members WHERE (worth_it <> 1 or worth_it is null) AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
249
|
+
Mar 7 00:00:32 online1 rails[59627]: TeamMember Count (0.000578) SELECT count(*) as count FROM team_members WHERE help_others = 1 AND goal_is_complete = 1 AND active_member = 1 AND goal_id = 225
|
250
|
+
Mar 7 00:00:32 online1 rails[59627]: Completed in 0.211973 (4 reqs/sec) | DB: 0.149357 (70%)
|
251
|
+
Mar 7 00:00:32 online1 rails[59635]: Processing PeopleController#progress (for 220.255.60.111; 165.21.154.158 at Mon Mar 07 00:00:32 CST 2005)
|
252
|
+
Mar 7 00:00:32 online1 rails[59635]: Parameters: {:id=>"swirlygirl", :on=>"35926", :action=>"progress", :"people/progress/swirlygirl/35926.html/progress/swirlygirl/35926"=>nil, :controller=>"people"}
|
253
|
+
Mar 7 00:00:32 online1 rails[59635]: Browser Load (0.000698) SELECT * FROM browsers WHERE ubid = 'STUFF' LIMIT 1
|
254
|
+
Mar 7 00:00:32 online1 rails[59635]: Person Load (0.001319) SELECT * FROM people WHERE username = 'swirlygirl' LIMIT 1
|
255
|
+
|