← 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:09 2016

Filename/home/vagrant/kohaclone/Koha/Schema/Result/Branch.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11148µs52µsClass::C3::Componentised::::BEGIN@1.2560 Class::C3::Componentised::BEGIN@1.2560
11111µs24µsKoha::Schema::Result::Branch::::BEGIN@13Koha::Schema::Result::Branch::BEGIN@13
11111µs98µsKoha::Schema::Result::Branch::::BEGIN@16Koha::Schema::Result::Branch::BEGIN@16
11110µs21µsKoha::Schema::Result::Branch::::BEGIN@14Koha::Schema::Result::Branch::BEGIN@14
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1257µs
# spent 52µs (48+5) within Class::C3::Componentised::BEGIN@1.2560 which was called: # once (48µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 52µs making 1 call to Class::C3::Componentised::BEGIN@1.2560 # spent 5µs making 1 call to utf8::import
2package Koha::Schema::Result::Branch;
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::Branch
10
11=cut
12
13237µs
# spent 24µs (11+13) within Koha::Schema::Result::Branch::BEGIN@13 which was called: # once (11µs+13µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 24µs making 1 call to Koha::Schema::Result::Branch::BEGIN@13 # spent 13µs making 1 call to strict::import
14232µs
# spent 21µs (10+11) within Koha::Schema::Result::Branch::BEGIN@14 which was called: # once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use warnings;
# spent 21µs making 1 call to Koha::Schema::Result::Branch::BEGIN@14 # spent 11µs making 1 call to warnings::import
15
162185µs
# spent 98µs (11+87) within Koha::Schema::Result::Branch::BEGIN@16 which was called: # once (11µs+87µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 98µs making 1 call to Koha::Schema::Result::Branch::BEGIN@16 # spent 87µs making 1 call to base::import
17
18=head1 TABLE: C<branches>
19
20=cut
21
221502µs__PACKAGE__->table("branches");
# spent 502µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
23
24=head1 ACCESSORS
25
26=head2 branchcode
27
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
32
33=head2 branchname
34
35 data_type: 'mediumtext'
36 is_nullable: 0
37
38=head2 branchaddress1
39
40 data_type: 'mediumtext'
41 is_nullable: 1
42
43=head2 branchaddress2
44
45 data_type: 'mediumtext'
46 is_nullable: 1
47
48=head2 branchaddress3
49
50 data_type: 'mediumtext'
51 is_nullable: 1
52
53=head2 branchzip
54
55 data_type: 'varchar'
56 is_nullable: 1
57 size: 25
58
59=head2 branchcity
60
61 data_type: 'mediumtext'
62 is_nullable: 1
63
64=head2 branchstate
65
66 data_type: 'mediumtext'
67 is_nullable: 1
68
69=head2 branchcountry
70
71 data_type: 'text'
72 is_nullable: 1
73
74=head2 branchphone
75
76 data_type: 'mediumtext'
77 is_nullable: 1
78
79=head2 branchfax
80
81 data_type: 'mediumtext'
82 is_nullable: 1
83
84=head2 branchemail
85
86 data_type: 'mediumtext'
87 is_nullable: 1
88
89=head2 branchreplyto
90
91 data_type: 'mediumtext'
92 is_nullable: 1
93
94=head2 branchreturnpath
95
96 data_type: 'mediumtext'
97 is_nullable: 1
98
99=head2 branchurl
100
101 data_type: 'mediumtext'
102 is_nullable: 1
103
104=head2 issuing
105
106 data_type: 'tinyint'
107 is_nullable: 1
108
109=head2 branchip
110
111 data_type: 'varchar'
112 is_nullable: 1
113 size: 15
114
115=head2 branchprinter
116
117 data_type: 'varchar'
118 is_nullable: 1
119 size: 100
120
121=head2 branchnotes
122
123 data_type: 'mediumtext'
124 is_nullable: 1
125
126=head2 opac_info
127
128 data_type: 'text'
129 is_nullable: 1
130
131=cut
132
133133.7ms__PACKAGE__->add_columns(
# spent 33.7ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
134 "branchcode",
135 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
136 "branchname",
137 { data_type => "mediumtext", is_nullable => 0 },
138 "branchaddress1",
139 { data_type => "mediumtext", is_nullable => 1 },
140 "branchaddress2",
141 { data_type => "mediumtext", is_nullable => 1 },
142 "branchaddress3",
143 { data_type => "mediumtext", is_nullable => 1 },
144 "branchzip",
145 { data_type => "varchar", is_nullable => 1, size => 25 },
146 "branchcity",
147 { data_type => "mediumtext", is_nullable => 1 },
148 "branchstate",
149 { data_type => "mediumtext", is_nullable => 1 },
150 "branchcountry",
151 { data_type => "text", is_nullable => 1 },
152 "branchphone",
153 { data_type => "mediumtext", is_nullable => 1 },
154 "branchfax",
155 { data_type => "mediumtext", is_nullable => 1 },
156 "branchemail",
157 { data_type => "mediumtext", is_nullable => 1 },
158 "branchreplyto",
159 { data_type => "mediumtext", is_nullable => 1 },
160 "branchreturnpath",
161 { data_type => "mediumtext", is_nullable => 1 },
162 "branchurl",
163 { data_type => "mediumtext", is_nullable => 1 },
164 "issuing",
165 { data_type => "tinyint", is_nullable => 1 },
166 "branchip",
167 { data_type => "varchar", is_nullable => 1, size => 15 },
168 "branchprinter",
169 { data_type => "varchar", is_nullable => 1, size => 100 },
170 "branchnotes",
171 { data_type => "mediumtext", is_nullable => 1 },
172 "opac_info",
173 { data_type => "text", is_nullable => 1 },
174);
175
176=head1 PRIMARY KEY
177
178=over 4
179
180=item * L</branchcode>
181
182=back
183
184=cut
185
1861100µs__PACKAGE__->set_primary_key("branchcode");
# spent 100µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
187
188=head1 RELATIONS
189
190=head2 aqbaskets
191
192Type: has_many
193
194Related object: L<Koha::Schema::Result::Aqbasket>
195
196=cut
197
1981356µs__PACKAGE__->has_many(
# spent 356µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
199 "aqbaskets",
200 "Koha::Schema::Result::Aqbasket",
201 { "foreign.branch" => "self.branchcode" },
202 { cascade_copy => 0, cascade_delete => 0 },
203);
204
205=head2 authorised_values_branches
206
207Type: has_many
208
209Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
210
211=cut
212
213114.5ms__PACKAGE__->has_many(
# spent 14.5ms making 1 call to DBIx::Class::Relationship::HasMany::has_many
214 "authorised_values_branches",
215 "Koha::Schema::Result::AuthorisedValuesBranch",
216 { "foreign.branchcode" => "self.branchcode" },
217 { cascade_copy => 0, cascade_delete => 0 },
218);
219
220=head2 borrower_attribute_types_branches
221
222Type: has_many
223
224Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
225
226=cut
227
2281336µs__PACKAGE__->has_many(
# spent 336µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
229 "borrower_attribute_types_branches",
230 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
231 { "foreign.b_branchcode" => "self.branchcode" },
232 { cascade_copy => 0, cascade_delete => 0 },
233);
234
235=head2 borrowers
236
237Type: has_many
238
239Related object: L<Koha::Schema::Result::Borrower>
240
241=cut
242
2431283µs__PACKAGE__->has_many(
# spent 283µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
244 "borrowers",
245 "Koha::Schema::Result::Borrower",
246 { "foreign.branchcode" => "self.branchcode" },
247 { cascade_copy => 0, cascade_delete => 0 },
248);
249
250=head2 branch_borrower_circ_rules
251
252Type: has_many
253
254Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
255
256=cut
257
2581238µs__PACKAGE__->has_many(
# spent 238µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
259 "branch_borrower_circ_rules",
260 "Koha::Schema::Result::BranchBorrowerCircRule",
261 { "foreign.branchcode" => "self.branchcode" },
262 { cascade_copy => 0, cascade_delete => 0 },
263);
264
265=head2 branch_item_rules
266
267Type: has_many
268
269Related object: L<Koha::Schema::Result::BranchItemRule>
270
271=cut
272
2731240µs__PACKAGE__->has_many(
# spent 240µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
274 "branch_item_rules",
275 "Koha::Schema::Result::BranchItemRule",
276 { "foreign.branchcode" => "self.branchcode" },
277 { cascade_copy => 0, cascade_delete => 0 },
278);
279
280=head2 branchrelations
281
282Type: has_many
283
284Related object: L<Koha::Schema::Result::Branchrelation>
285
286=cut
287
2881228µs__PACKAGE__->has_many(
# spent 228µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
289 "branchrelations",
290 "Koha::Schema::Result::Branchrelation",
291 { "foreign.branchcode" => "self.branchcode" },
292 { cascade_copy => 0, cascade_delete => 0 },
293);
294
295=head2 branchtransfers_frombranches
296
297Type: has_many
298
299Related object: L<Koha::Schema::Result::Branchtransfer>
300
301=cut
302
3031221µs__PACKAGE__->has_many(
# spent 221µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
304 "branchtransfers_frombranches",
305 "Koha::Schema::Result::Branchtransfer",
306 { "foreign.frombranch" => "self.branchcode" },
307 { cascade_copy => 0, cascade_delete => 0 },
308);
309
310=head2 branchtransfers_tobranches
311
312Type: has_many
313
314Related object: L<Koha::Schema::Result::Branchtransfer>
315
316=cut
317
3181219µs__PACKAGE__->has_many(
# spent 219µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
319 "branchtransfers_tobranches",
320 "Koha::Schema::Result::Branchtransfer",
321 { "foreign.tobranch" => "self.branchcode" },
322 { cascade_copy => 0, cascade_delete => 0 },
323);
324
325=head2 categories_branches
326
327Type: has_many
328
329Related object: L<Koha::Schema::Result::CategoriesBranch>
330
331=cut
332
3331224µs__PACKAGE__->has_many(
# spent 224µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
334 "categories_branches",
335 "Koha::Schema::Result::CategoriesBranch",
336 { "foreign.branchcode" => "self.branchcode" },
337 { cascade_copy => 0, cascade_delete => 0 },
338);
339
340=head2 collections
341
342Type: has_many
343
344Related object: L<Koha::Schema::Result::Collection>
345
346=cut
347
3481220µs__PACKAGE__->has_many(
# spent 220µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
349 "collections",
350 "Koha::Schema::Result::Collection",
351 { "foreign.colBranchcode" => "self.branchcode" },
352 { cascade_copy => 0, cascade_delete => 0 },
353);
354
355=head2 course_items
356
357Type: has_many
358
359Related object: L<Koha::Schema::Result::CourseItem>
360
361=cut
362
3631221µs__PACKAGE__->has_many(
# spent 221µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
364 "course_items",
365 "Koha::Schema::Result::CourseItem",
366 { "foreign.holdingbranch" => "self.branchcode" },
367 { cascade_copy => 0, cascade_delete => 0 },
368);
369
370=head2 creator_batches
371
372Type: has_many
373
374Related object: L<Koha::Schema::Result::CreatorBatch>
375
376=cut
377
3781273µs__PACKAGE__->has_many(
# spent 273µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
379 "creator_batches",
380 "Koha::Schema::Result::CreatorBatch",
381 { "foreign.branch_code" => "self.branchcode" },
382 { cascade_copy => 0, cascade_delete => 0 },
383);
384
385=head2 default_branch_circ_rule
386
387Type: might_have
388
389Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
390
391=cut
392
3931283µs__PACKAGE__->might_have(
# spent 283µs making 1 call to DBIx::Class::Relationship::HasOne::might_have
394 "default_branch_circ_rule",
395 "Koha::Schema::Result::DefaultBranchCircRule",
396 { "foreign.branchcode" => "self.branchcode" },
397 { cascade_copy => 0, cascade_delete => 0 },
398);
399
400=head2 hold_fill_targets
401
402Type: has_many
403
404Related object: L<Koha::Schema::Result::HoldFillTarget>
405
406=cut
407
4081275µs__PACKAGE__->has_many(
# spent 275µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
409 "hold_fill_targets",
410 "Koha::Schema::Result::HoldFillTarget",
411 { "foreign.source_branchcode" => "self.branchcode" },
412 { cascade_copy => 0, cascade_delete => 0 },
413);
414
415=head2 items_holdingbranches
416
417Type: has_many
418
419Related object: L<Koha::Schema::Result::Item>
420
421=cut
422
4231278µs__PACKAGE__->has_many(
# spent 278µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
424 "items_holdingbranches",
425 "Koha::Schema::Result::Item",
426 { "foreign.holdingbranch" => "self.branchcode" },
427 { cascade_copy => 0, cascade_delete => 0 },
428);
429
430=head2 items_homebranches
431
432Type: has_many
433
434Related object: L<Koha::Schema::Result::Item>
435
436=cut
437
4381253µs__PACKAGE__->has_many(
# spent 253µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
439 "items_homebranches",
440 "Koha::Schema::Result::Item",
441 { "foreign.homebranch" => "self.branchcode" },
442 { cascade_copy => 0, cascade_delete => 0 },
443);
444
445=head2 opac_news
446
447Type: has_many
448
449Related object: L<Koha::Schema::Result::OpacNews>
450
451=cut
452
4531232µs__PACKAGE__->has_many(
# spent 232µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
454 "opac_news",
455 "Koha::Schema::Result::OpacNews",
456 { "foreign.branchcode" => "self.branchcode" },
457 { cascade_copy => 0, cascade_delete => 0 },
458);
459
460=head2 reserves
461
462Type: has_many
463
464Related object: L<Koha::Schema::Result::Reserve>
465
466=cut
467
4681244µs__PACKAGE__->has_many(
# spent 244µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
469 "reserves",
470 "Koha::Schema::Result::Reserve",
471 { "foreign.branchcode" => "self.branchcode" },
472 { cascade_copy => 0, cascade_delete => 0 },
473);
474
475=head2 transport_cost_frombranches
476
477Type: has_many
478
479Related object: L<Koha::Schema::Result::TransportCost>
480
481=cut
482
4831254µs__PACKAGE__->has_many(
# spent 254µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
484 "transport_cost_frombranches",
485 "Koha::Schema::Result::TransportCost",
486 { "foreign.frombranch" => "self.branchcode" },
487 { cascade_copy => 0, cascade_delete => 0 },
488);
489
490=head2 transport_cost_tobranches
491
492Type: has_many
493
494Related object: L<Koha::Schema::Result::TransportCost>
495
496=cut
497
4981231µs__PACKAGE__->has_many(
# spent 231µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
499 "transport_cost_tobranches",
500 "Koha::Schema::Result::TransportCost",
501 { "foreign.tobranch" => "self.branchcode" },
502 { cascade_copy => 0, cascade_delete => 0 },
503);
504
505=head2 categorycodes
506
507Type: many_to_many
508
509Composing rels: L</branchrelations> -> categorycode
510
511=cut
512
5131174µs__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
# spent 174µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many
514
515
516# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
517# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CGNPB/MkGLOihDThj43/4A
518
519
520# You can replace this text with custom content, and it will be preserved on regeneration
5211;