Asynchronous Queries

Asynchronous queries have known feature gaps and reliability issues and are deprecated as of TileDB 2.14.

You can perform queries (reads or writes) asynchronously as follows:

// ... create read or write query

// Callback that simply prints the input string to stdout
void print_upon_completion(void* s) {
  printf("%s\n", (char*)s);

// Instead of using tiledb_query_submit(), use tiledb_query_submit_async()
// and pass a callback function
char s[100] = "Callback: Query completed";
tiledb_query_submit_async(ctx, query, print_upon_completion, s);

Last updated