← 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:50:58 2016
Reported on Fri Jan 8 13:51:28 2016

Filename/home/vagrant/kohaclone/Koha/Schema/Result/BorrowerMessagePreference.pm
StatementsExecuted 17 statements in 606µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11124µs27µsClass::C3::Componentised::::BEGIN@1.911 Class::C3::Componentised::BEGIN@1.911
11110µs88µsKoha::Schema::Result::BorrowerMessagePreference::::BEGIN@16Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16
1119µs18µsKoha::Schema::Result::BorrowerMessagePreference::::BEGIN@13Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13
1119µs15µsKoha::Schema::Result::BorrowerMessagePreference::::BEGIN@14Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1268µs230µs
# spent 27µs (24+3) within Class::C3::Componentised::BEGIN@1.911 which was called: # once (24µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 27µs making 1 call to Class::C3::Componentised::BEGIN@1.911 # spent 3µs making 1 call to utf8::import
2package Koha::Schema::Result::BorrowerMessagePreference;
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::BorrowerMessagePreference
10
11=cut
12
13237µs227µs
# spent 18µs (9+9) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 which was called: # once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 18µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 # spent 9µs making 1 call to strict::import
14235µs221µs
# spent 15µs (9+6) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14 which was called: # once (9µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use warnings;
# spent 15µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14 # spent 6µs making 1 call to warnings::import
15
162350µs2165µs
# spent 88µs (10+78) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 which was called: # once (10µs+78µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 88µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 # spent 78µs making 1 call to base::import
17
18=head1 TABLE: C<borrower_message_preferences>
19
20=cut
21
22118µs1302µs__PACKAGE__->table("borrower_message_preferences");
# spent 302µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
23
24=head1 ACCESSORS
25
26=head2 borrower_message_preference_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 categorycode
39
40 data_type: 'varchar'
41 is_foreign_key: 1
42 is_nullable: 1
43 size: 10
44
45=head2 message_attribute_id
46
47 data_type: 'integer'
48 default_value: 0
49 is_foreign_key: 1
50 is_nullable: 1
51
52=head2 days_in_advance
53
54 data_type: 'integer'
55 default_value: 0
56 is_nullable: 1
57
58=head2 wants_digest
59
60 data_type: 'tinyint'
61 default_value: 0
62 is_nullable: 0
63
64=cut
65
66123µs12.36ms__PACKAGE__->add_columns(
# spent 2.36ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
67 "borrower_message_preference_id",
68 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69 "borrowernumber",
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71 "categorycode",
72 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
73 "message_attribute_id",
74 {
75 data_type => "integer",
76 default_value => 0,
77 is_foreign_key => 1,
78 is_nullable => 1,
79 },
80 "days_in_advance",
81 { data_type => "integer", default_value => 0, is_nullable => 1 },
82 "wants_digest",
83 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
84);
85
86=head1 PRIMARY KEY
87
88=over 4
89
90=item * L</borrower_message_preference_id>
91
92=back
93
94=cut
95
96119µs189µs__PACKAGE__->set_primary_key("borrower_message_preference_id");
# spent 89µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
97
98=head1 RELATIONS
99
100=head2 borrower_message_transport_preferences
101
102Type: has_many
103
104Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
105
106=cut
107
10818µs1349µs__PACKAGE__->has_many(
# spent 349µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
109 "borrower_message_transport_preferences",
110 "Koha::Schema::Result::BorrowerMessageTransportPreference",
111 {
112 "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
113 },
114 { cascade_copy => 0, cascade_delete => 0 },
115);
116
117=head2 borrowernumber
118
119Type: belongs_to
120
121Related object: L<Koha::Schema::Result::Borrower>
122
123=cut
124
125111µs1362µs__PACKAGE__->belongs_to(
# spent 362µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
126 "borrowernumber",
127 "Koha::Schema::Result::Borrower",
128 { borrowernumber => "borrowernumber" },
129 {
130 is_deferrable => 1,
131 join_type => "LEFT",
132 on_delete => "CASCADE",
133 on_update => "CASCADE",
134 },
135);
136
137=head2 categorycode
138
139Type: belongs_to
140
141Related object: L<Koha::Schema::Result::Category>
142
143=cut
144
14515µs1216µs__PACKAGE__->belongs_to(
# spent 216µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
146 "categorycode",
147 "Koha::Schema::Result::Category",
148 { categorycode => "categorycode" },
149 {
150 is_deferrable => 1,
151 join_type => "LEFT",
152 on_delete => "CASCADE",
153 on_update => "CASCADE",
154 },
155);
156
157=head2 message_attribute
158
159Type: belongs_to
160
161Related object: L<Koha::Schema::Result::MessageAttribute>
162
163=cut
164
16514µs1186µs__PACKAGE__->belongs_to(
# spent 186µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
166 "message_attribute",
167 "Koha::Schema::Result::MessageAttribute",
168 { message_attribute_id => "message_attribute_id" },
169 {
170 is_deferrable => 1,
171 join_type => "LEFT",
172 on_delete => "CASCADE",
173 on_update => "CASCADE",
174 },
175);
176
177=head2 message_transport_types
178
179Type: many_to_many
180
181Composing rels: L</borrower_message_transport_preferences> -> message_transport_type
182
183=cut
184
185110µs1163µs__PACKAGE__->many_to_many(
# spent 163µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many
186 "message_transport_types",
187 "borrower_message_transport_preferences",
188 "message_transport_type",
189);
190
191
192# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
193# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hd5sPnxGi5332WmzqCus8A
194
195
196# You can replace this text with custom content, and it will be preserved on regeneration
197117µs1;