public function insertChunk($chunk) { if (!$this->checkedIndexes) { $this->ensureIndexes(); } $this->chunksCollection->insertOne($chunk); }