python cassandra : concurrency Insertion and json format -


i new cassandra, use python-driver cassandra.

  1. does know better way insert concurrently?

  2. i have graph model, built networkx, there way store/load graph model ( node , edges json format) cassandra. how performance/

thanks in advance.

cassandra python driver supports async queries:

the driver supports asynchronous query execution through execute_async(). instead of waiting query complete , returning rows directly, method returns responsefuture object. there 2 ways of getting final result object.

the first calling result() on it. if query has not yet completed, block until has , return result or raise exception if error occurred.

alternatively, instead of calling result(), can attach callback , errback functions through add_callback(), add_errback(), , add_callbacks(), methods.

as performance of graph operations, have more specific. don't see possible performance problems graph storage in c* if use correct db schema that.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -