CompanySeptember 19, 2017

New Features in the DataStax Node.js Drivers

Jorge Bay Gondra
Jorge Bay Gondra
New Features in the DataStax Node.js Drivers
const client = new Client({
  contactPoints,
  policies: {
    speculativeExecution: new ConstantSpeculativeExecutionPolicy(
      200, // delay before a new execution is launched
      2) // maximum amount of additional executions
  }
});
const query = 'SELECT * FROM users WHERE key = ?';
client.execute(query, [ 'usr1' ], { prepare: true, isIdempotent: true });
const client = new Client({
  contactPoints,
  prepareOnAllHosts: false,
  rePrepareOnUp: false
});
console.log('Pool state: %s', client.getState());
Discover more
DriversNode.js
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.