Module: Pacer::PacerGraph::BulkJob
- Included in:
- Pacer::PacerGraph
- Defined in:
- lib/pacer/graph/pacer_graph.rb
Instance Attribute Summary collapse
-
#in_bulk_job ⇒ Object
Returns the value of attribute in_bulk_job.
Instance Method Summary collapse
-
#bulk_job_size ⇒ Object
The currently configured bulk job size.
-
#bulk_job_size=(size) ⇒ Object
Set how many elements should go into each transaction in a bulk job.
-
#in_bulk_job? ⇒ Boolean
Are we currently in the midst of a bulk job?.
Instance Attribute Details
#in_bulk_job ⇒ Object
Returns the value of attribute in_bulk_job.
257 258 259 |
# File 'lib/pacer/graph/pacer_graph.rb', line 257 def in_bulk_job @in_bulk_job end |
Instance Method Details
#bulk_job_size ⇒ Object
The currently configured bulk job size.
268 269 270 271 272 273 274 |
# File 'lib/pacer/graph/pacer_graph.rb', line 268 def bulk_job_size if defined? @bulk_job_size @bulk_job_size else 5000 end end |
#bulk_job_size=(size) ⇒ Object
Set how many elements should go into each transaction in a bulk job.
263 264 265 |
# File 'lib/pacer/graph/pacer_graph.rb', line 263 def bulk_job_size=(size) @bulk_job_size = size end |
#in_bulk_job? ⇒ Boolean
Are we currently in the midst of a bulk job?
277 278 279 |
# File 'lib/pacer/graph/pacer_graph.rb', line 277 def in_bulk_job? @in_bulk_job if defined? @in_bulk_job end |