def METHOD_NAME(self, tx: BaseTransaction) -> None:
    assert tx.hash is not None
    for key in self._extract_keys(tx):
        self.log.debug('put key', key=key)
        self._db.put((self._cf, self._to_rocksdb_key(key, tx)), b'')