← 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 14:16:49 2016
Reported on Fri Jan 8 14:23:08 2016

Filename/home/vagrant/kohaclone/Koha/Schema/Result/BorrowerMessagePreference.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11176µs80µsClass::C3::Componentised::::BEGIN@1.1229 Class::C3::Componentised::BEGIN@1.1229
11110µs19µsKoha::Schema::Result::BorrowerMessagePreference::::BEGIN@13Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13
11110µs83µsKoha::Schema::Result::BorrowerMessagePreference::::BEGIN@16Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16
1118µ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
1283µs
# spent 80µs (76+4) within Class::C3::Componentised::BEGIN@1.1229 which was called: # once (76µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 80µs making 1 call to Class::C3::Componentised::BEGIN@1.1229 # spent 4µ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
13227µs
# spent 19µs (10+8) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 which was called: # once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 19µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 # spent 8µs making 1 call to strict::import
14221µs
# spent 15µs (8+6) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14 which was called: # once (8µ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
162157µs
# spent 83µs (10+74) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 which was called: # once (10µs+74µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 83µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 # spent 74µs making 1 call to base::import
17
18=head1 TABLE: C<borrower_message_preferences>
19
20=cut
21
221313µs__PACKAGE__->table("borrower_message_preferences");
# spent 313µ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
6612.01ms__PACKAGE__->add_columns(
# spent 2.01ms 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
96171µs__PACKAGE__->set_primary_key("borrower_message_preference_id");
# spent 71µ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
1081362µs__PACKAGE__->has_many(
# spent 362µ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
12511.05ms__PACKAGE__->belongs_to(
# spent 1.05ms 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
1451213µs__PACKAGE__->belongs_to(
# spent 213µ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
1651164µs__PACKAGE__->belongs_to(
# spent 164µ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
1851141µs__PACKAGE__->many_to_many(
# spent 141µ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
1971;