MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / _send_chunks

Method _send_chunks

cassandra/cluster.py:2263–2273  ·  view source on GitHub ↗
(cls, connection, host, chunks, set_keyspace=False)

Source from the content-addressed store, hash-verified

2261
2262 @classmethod
2263 def _send_chunks(cls, connection, host, chunks, set_keyspace=False):
2264 for ks_chunk in chunks:
2265 messages = [PrepareMessage(query=s.query_string,
2266 keyspace=s.keyspace if set_keyspace else None)
2267 for s in ks_chunk]
2268 # TODO: make this timeout configurable somehow?
2269 responses = connection.wait_for_responses(*messages, timeout=5.0, fail_on_error=False)
2270 for success, response in responses:
2271 if not success:
2272 log.debug("Got unexpected response when preparing "
2273 "statement on host %s: %r", host, response)
2274
2275 def _prepare_all_queries(self, host):
2276 if not self._prepared_statements or not self.reprepare_on_up:

Callers 1

_prepare_all_queriesMethod · 0.95

Calls 2

PrepareMessageClass · 0.90
wait_for_responsesMethod · 0.80

Tested by

no test coverage detected