def prepare_batch(self, batch_info, dst_curs): """Called on first event for this table in current batch.""" if self.hash_key is not None: if not self.hash_mask: self.load_shard_info(dst_curs) TableHandler.prepare_batch(self, batch_info, dst_curs)
def prepare_batch(self, batch_info, dst_curs): """Called on first event for this table in current batch.""" if not self.max_part: self.load_part_info(dst_curs) TableHandler.prepare_batch(self, batch_info, dst_curs)