def _updatePathIdsPresent(self, instanceId, pathIdList, isPresent):
        # Max number of bound params
        chunkSize = 990
        plen = len(pathIdList)
        cu = self.db.cursor()
        i = 0
        while i < plen:
            clen = min(chunkSize, plen - i)
            bvals = [ isPresent, instanceId ] + pathIdList[i : i + clen]
            bparams = ','.join('?' * clen)
            cu.execute("UPDATE DBTroveFiles "
                       "SET isPresent=? "
                       "WHERE instanceId=? AND pathId in (%s)" % bparams,
                       bvals)
            i += clen