public function buildIndex($bucketName, $indexNames)
    {
        $this->beginProfile($token = "    > build index $bucketName ...");

        $result = $this->db->buildIndex($bucketName, $indexNames);

        $this->endProfile($token);

        return $result;
    }