This article is deprecated.
AsyncDistributedSqlEngine provides the client interface for distributed asynchronous execution of multiple SQL queries simultaneously on database shards. It is also possible to perform asynchronous parallel execution of multiple SQL queries using the Python exdb.connect() method.
For an overview see page C++ Classes
AsyncDistributedSqlEngine inherits all public methods from base class SqlEngine; the principal methods are listed on the McoSqlEngine page. The additional specialized methods of AsyncDistributedSqlEngine are described below.
AsyncDistributedSqlEngine(size_t nWorkers = 1, size_t txBufSize = 64 * 1024)Constructs the SQL distributed asynchronous engine.bool open( Parameter List )Opens the SQL engine, starts the connection pool and connects all worker processes.bool open( OpenParameters *params, int *badNode = 0 )Opens the SQL engine withOpenParameters.void close()Closes the connection with the servers and stops the worker processes.void executeMany()Starts executing a list of queries.Vector<SyntheticTable> * waitMany()Waits on worker processes and returns the vector of query results.QueryStat * get_worker_stat(size_t i_wrk)Gets the status of a worker process.void destroy(Allocator* allocator)Calls the destructor to destroy the engine and free the allocated memory.