Ejemplo n.º 1
0
        def start_bundle(self):
            self._client = helper.get_client(self._project, namespace=None)
            self._init_batch()

            self._batch_sizer = util.DynamicBatchSizer()
            self._target_batch_size = self._batch_sizer.get_batch_size(
                time.time() * 1000)
Ejemplo n.º 2
0
 def start_bundle(self):
   self._mutations = []
   self._mutations_size = 0
   self._datastore = helper.get_datastore(self._project)
   if self._fixed_batch_size:
     self._target_batch_size = self._fixed_batch_size
   else:
     self._batch_sizer = util.DynamicBatchSizer()
     self._target_batch_size = self._batch_sizer.get_batch_size(
         time.time()*1000)
Ejemplo n.º 3
0
 def setUp(self):
   self._batcher = util.DynamicBatchSizer()