← 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/ImportBatch.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11131µs35µsClass::C3::Componentised::::BEGIN@1.1665 Class::C3::Componentised::BEGIN@1.1665
11110µs22µsKoha::Schema::Result::ImportBatch::::BEGIN@13Koha::Schema::Result::ImportBatch::BEGIN@13
11110µs86µsKoha::Schema::Result::ImportBatch::::BEGIN@16Koha::Schema::Result::ImportBatch::BEGIN@16
1119µs18µsKoha::Schema::Result::ImportBatch::::BEGIN@14Koha::Schema::Result::ImportBatch::BEGIN@14
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1239µs
# spent 35µs (31+4) within Class::C3::Componentised::BEGIN@1.1665 which was called: # once (31µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 35µs making 1 call to Class::C3::Componentised::BEGIN@1.1665 # spent 4µs making 1 call to utf8::import
2package Koha::Schema::Result::ImportBatch;
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::ImportBatch
10
11=cut
12
13234µs
# spent 22µs (10+12) within Koha::Schema::Result::ImportBatch::BEGIN@13 which was called: # once (10µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 22µs making 1 call to Koha::Schema::Result::ImportBatch::BEGIN@13 # spent 12µs making 1 call to strict::import
14226µs
# spent 18µs (9+8) within Koha::Schema::Result::ImportBatch::BEGIN@14 which was called: # once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use warnings;
# spent 18µs making 1 call to Koha::Schema::Result::ImportBatch::BEGIN@14 # spent 8µs making 1 call to warnings::import
15
162162µs
# spent 86µs (10+76) within Koha::Schema::Result::ImportBatch::BEGIN@16 which was called: # once (10µs+76µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 86µs making 1 call to Koha::Schema::Result::ImportBatch::BEGIN@16 # spent 76µs making 1 call to base::import
17
18=head1 TABLE: C<import_batches>
19
20=cut
21
221334µs__PACKAGE__->table("import_batches");
# spent 334µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
23
24=head1 ACCESSORS
25
26=head2 import_batch_id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31
32=head2 matcher_id
33
34 data_type: 'integer'
35 is_nullable: 1
36
37=head2 template_id
38
39 data_type: 'integer'
40 is_nullable: 1
41
42=head2 branchcode
43
44 data_type: 'varchar'
45 is_nullable: 1
46 size: 10
47
48=head2 num_records
49
50 data_type: 'integer'
51 default_value: 0
52 is_nullable: 0
53
54=head2 num_items
55
56 data_type: 'integer'
57 default_value: 0
58 is_nullable: 0
59
60=head2 upload_timestamp
61
62 data_type: 'timestamp'
63 datetime_undef_if_invalid: 1
64 default_value: current_timestamp
65 is_nullable: 0
66
67=head2 overlay_action
68
69 data_type: 'enum'
70 default_value: 'create_new'
71 extra: {list => ["replace","create_new","use_template","ignore"]}
72 is_nullable: 0
73
74=head2 nomatch_action
75
76 data_type: 'enum'
77 default_value: 'create_new'
78 extra: {list => ["create_new","ignore"]}
79 is_nullable: 0
80
81=head2 item_action
82
83 data_type: 'enum'
84 default_value: 'always_add'
85 extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
86 is_nullable: 0
87
88=head2 import_status
89
90 data_type: 'enum'
91 default_value: 'staging'
92 extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
93 is_nullable: 0
94
95=head2 batch_type
96
97 data_type: 'enum'
98 default_value: 'batch'
99 extra: {list => ["batch","z3950","webservice"]}
100 is_nullable: 0
101
102=head2 record_type
103
104 data_type: 'enum'
105 default_value: 'biblio'
106 extra: {list => ["biblio","auth","holdings"]}
107 is_nullable: 0
108
109=head2 file_name
110
111 data_type: 'varchar'
112 is_nullable: 1
113 size: 100
114
115=head2 comments
116
117 data_type: 'mediumtext'
118 is_nullable: 1
119
120=cut
121
12215.70ms__PACKAGE__->add_columns(
# spent 5.70ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
123 "import_batch_id",
124 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
125 "matcher_id",
126 { data_type => "integer", is_nullable => 1 },
127 "template_id",
128 { data_type => "integer", is_nullable => 1 },
129 "branchcode",
130 { data_type => "varchar", is_nullable => 1, size => 10 },
131 "num_records",
132 { data_type => "integer", default_value => 0, is_nullable => 0 },
133 "num_items",
134 { data_type => "integer", default_value => 0, is_nullable => 0 },
135 "upload_timestamp",
136 {
137 data_type => "timestamp",
138 datetime_undef_if_invalid => 1,
139 default_value => \"current_timestamp",
140 is_nullable => 0,
141 },
142 "overlay_action",
143 {
144 data_type => "enum",
145 default_value => "create_new",
146 extra => { list => ["replace", "create_new", "use_template", "ignore"] },
147 is_nullable => 0,
148 },
149 "nomatch_action",
150 {
151 data_type => "enum",
152 default_value => "create_new",
153 extra => { list => ["create_new", "ignore"] },
154 is_nullable => 0,
155 },
156 "item_action",
157 {
158 data_type => "enum",
159 default_value => "always_add",
160 extra => {
161 list => [
162 "always_add",
163 "add_only_for_matches",
164 "add_only_for_new",
165 "ignore",
166 "replace",
167 ],
168 },
169 is_nullable => 0,
170 },
171 "import_status",
172 {
173 data_type => "enum",
174 default_value => "staging",
175 extra => {
176 list => [
177 "staging",
178 "staged",
179 "importing",
180 "imported",
181 "reverting",
182 "reverted",
183 "cleaned",
184 ],
185 },
186 is_nullable => 0,
187 },
188 "batch_type",
189 {
190 data_type => "enum",
191 default_value => "batch",
192 extra => { list => ["batch", "z3950", "webservice"] },
193 is_nullable => 0,
194 },
195 "record_type",
196 {
197 data_type => "enum",
198 default_value => "biblio",
199 extra => { list => ["biblio", "auth", "holdings"] },
200 is_nullable => 0,
201 },
202 "file_name",
203 { data_type => "varchar", is_nullable => 1, size => 100 },
204 "comments",
205 { data_type => "mediumtext", is_nullable => 1 },
206);
207
208=head1 PRIMARY KEY
209
210=over 4
211
212=item * L</import_batch_id>
213
214=back
215
216=cut
217
218190µs__PACKAGE__->set_primary_key("import_batch_id");
# spent 90µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
219
220=head1 RELATIONS
221
222=head2 import_records
223
224Type: has_many
225
226Related object: L<Koha::Schema::Result::ImportRecord>
227
228=cut
229
2301351µs__PACKAGE__->has_many(
# spent 351µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
231 "import_records",
232 "Koha::Schema::Result::ImportRecord",
233 { "foreign.import_batch_id" => "self.import_batch_id" },
234 { cascade_copy => 0, cascade_delete => 0 },
235);
236
237
238# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 03:46:54
239# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4UfJtTeAzzsuBycjsn2foQ
240
241
242# You can replace this text with custom content, and it will be preserved on regeneration
2431;