def METHOD_NAME(docs, comment, author, ip="127.0.0.1"):
    """Updates the given docs in the database by writing all the docs in a chunk.
    This doesn't update the index tables. Avoid this function if you have any change that requires updating the index tables.
    """
    now = datetime.datetime.utcnow()
    author_id = get_thing_id(author)
    t = db.transaction()
    try:
        docdict = {doc.id: doc for doc in docs}
        thing_ids = list(docdict)
        # lock the rows in the table
        rows = db.query(
            "SELECT id, key, latest_revision FROM thing where id IN $thing_ids FOR UPDATE",
            vars=locals(),
        )
        # update revision and last_modified in each document
        for row in rows:
            doc = docdict[row.id]
            doc.revision = row.latest_revision + 1
            doc.data['revision'] = doc.revision
            doc.data['latest_revision'] = doc.revision
            doc.data['last_modified']['value'] = now.isoformat()
        tx_id = db.insert(
            "transaction",
            author_id=author_id,
            action="bulk_update",
            ip="127.0.0.1",
            created=now,
            comment=comment,
        )
        debug("INSERT version")
        db.multiple_insert(
            "version",
            [
                {"thing_id": doc.id, "transaction_id": tx_id, "revision": doc.revision}
                for doc in docs
            ],
            seqname=False,
        )
        debug("INSERT data")
        data = [
            web.storage(
                thing_id=doc.id, revision=doc.revision, data=json.dumps(doc.data)
            )
            for doc in docs
        ]
        db.multiple_insert("data", data, seqname=False)
        debug("UPDATE thing")
        db.query(
            "UPDATE thing set latest_revision=latest_revision+1 WHERE id IN $thing_ids",
            vars=locals(),
        )
    except:
        t.rollback()
        debug("ROLLBACK")
        raise
    else:
        t.commit()
        debug("COMMIT")
        mapping = {doc.key: d.data for doc, d in zip(docs, data)}
        mc and mc.set_multi(mapping)
        debug("MC SET")