← Index
NYTProf Performance Profile   « line view »
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 13:01:18 2016
Reported on Fri Jan 8 13:01:36 2016

Filename/home/vagrant/kohaclone/Koha/Schema/Result/MessageQueue.pm
StatementsExecuted 14 statements in 351µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11125µs29µsClass::C3::Componentised::::BEGIN@1.1813 Class::C3::Componentised::BEGIN@1.1813
11111µs82µsKoha::Schema::Result::MessageQueue::::BEGIN@16Koha::Schema::Result::MessageQueue::BEGIN@16
1119µs18µsKoha::Schema::Result::MessageQueue::::BEGIN@13Koha::Schema::Result::MessageQueue::BEGIN@13
1118µs16µsKoha::Schema::Result::MessageQueue::::BEGIN@14Koha::Schema::Result::MessageQueue::BEGIN@14
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1270µs232µs
# spent 29µs (25+4) within Class::C3::Componentised::BEGIN@1.1813 which was called: # once (25µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 29µs making 1 call to Class::C3::Componentised::BEGIN@1.1813 # spent 4µs making 1 call to utf8::import
2package Koha::Schema::Result::MessageQueue;
3
4# Created by DBIx::Class::Schema::Loader
5# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7=head1 NAME
8
9Koha::Schema::Result::MessageQueue
10
11=cut
12
13238µs228µs
# spent 18µs (9+10) within Koha::Schema::Result::MessageQueue::BEGIN@13 which was called: # once (9µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 18µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@13 # spent 10µs making 1 call to strict::import
14237µs224µs
# spent 16µs (8+8) within Koha::Schema::Result::MessageQueue::BEGIN@14 which was called: # once (8µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use warnings;
# spent 16µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@14 # spent 8µs making 1 call to warnings::import
15
162120µs2152µs
# spent 82µs (11+71) within Koha::Schema::Result::MessageQueue::BEGIN@16 which was called: # once (11µs+71µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 82µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@16 # spent 71µs making 1 call to base::import
17
18=head1 TABLE: C<message_queue>
19
20=cut
21
221100ns1278µs__PACKAGE__->table("message_queue");
# spent 278µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
23
24=head1 ACCESSORS
25
26=head2 message_id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31
32=head2 borrowernumber
33
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 1
37
38=head2 subject
39
40 data_type: 'text'
41 is_nullable: 1
42
43=head2 content
44
45 data_type: 'text'
46 is_nullable: 1
47
48=head2 metadata
49
50 data_type: 'text'
51 is_nullable: 1
52
53=head2 letter_code
54
55 data_type: 'varchar'
56 is_nullable: 1
57 size: 64
58
59=head2 message_transport_type
60
61 data_type: 'varchar'
62 is_foreign_key: 1
63 is_nullable: 0
64 size: 20
65
66=head2 status
67
68 data_type: 'enum'
69 default_value: 'pending'
70 extra: {list => ["sent","pending","failed","deleted"]}
71 is_nullable: 0
72
73=head2 time_queued
74
75 data_type: 'timestamp'
76 datetime_undef_if_invalid: 1
77 default_value: current_timestamp
78 is_nullable: 0
79
80=head2 to_address
81
82 data_type: 'mediumtext'
83 is_nullable: 1
84
85=head2 from_address
86
87 data_type: 'mediumtext'
88 is_nullable: 1
89
90=head2 content_type
91
92 data_type: 'text'
93 is_nullable: 1
94
95=cut
96
97137µs14.92ms__PACKAGE__->add_columns(
# spent 4.92ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
98 "message_id",
99 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
100 "borrowernumber",
101 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
102 "subject",
103 { data_type => "text", is_nullable => 1 },
104 "content",
105 { data_type => "text", is_nullable => 1 },
106 "metadata",
107 { data_type => "text", is_nullable => 1 },
108 "letter_code",
109 { data_type => "varchar", is_nullable => 1, size => 64 },
110 "message_transport_type",
111 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 },
112 "status",
113 {
114 data_type => "enum",
115 default_value => "pending",
116 extra => { list => ["sent", "pending", "failed", "deleted"] },
117 is_nullable => 0,
118 },
119 "time_queued",
120 {
121 data_type => "timestamp",
122 datetime_undef_if_invalid => 1,
123 default_value => \"current_timestamp",
124 is_nullable => 0,
125 },
126 "to_address",
127 { data_type => "mediumtext", is_nullable => 1 },
128 "from_address",
129 { data_type => "mediumtext", is_nullable => 1 },
130 "content_type",
131 { data_type => "text", is_nullable => 1 },
132);
133
134=head1 PRIMARY KEY
135
136=over 4
137
138=item * L</message_id>
139
140=back
141
142=cut
143
144117µs189µs__PACKAGE__->set_primary_key("message_id");
# spent 89µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
145
146=head1 RELATIONS
147
148=head2 borrowernumber
149
150Type: belongs_to
151
152Related object: L<Koha::Schema::Result::Borrower>
153
154=cut
155
156111µs1398µs__PACKAGE__->belongs_to(
# spent 398µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
157 "borrowernumber",
158 "Koha::Schema::Result::Borrower",
159 { borrowernumber => "borrowernumber" },
160 {
161 is_deferrable => 1,
162 join_type => "LEFT",
163 on_delete => "CASCADE",
164 on_update => "CASCADE",
165 },
166);
167
168=head2 message_transport_type
169
170Type: belongs_to
171
172Related object: L<Koha::Schema::Result::MessageTransportType>
173
174=cut
175
17615µs1199µs__PACKAGE__->belongs_to(
# spent 199µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
177 "message_transport_type",
178 "Koha::Schema::Result::MessageTransportType",
179 { message_transport_type => "message_transport_type" },
180 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
181);
182
183
184# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-06-22 16:37:20
185# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nQcmtLCbGEeLFLFP4jwy2g
186
187
188# You can replace this text with custom content, and it will be preserved on regeneration
189117µs1;