Tag: nodejs
Querying Date Ranges within Embedded JSON Document Arrays. A Simple Example Using N1QL, Nodejs and Docker
Querying and indexing document arrays is one of the most powerful features of Couchbase. Finding array entries within a specific date range is a common requirement. Consider the following use case. User Story: “I want to index an embedded account...
The Fastest Way to Identify PII Stored in your Database: A Simple Example Using N1QL, Nodejs and Docker
A frequent request from customers is a way to identify PII within their databases. I thought I’d show a brief example how this can be done. User Story: “I want to identify unencrypted credit card numbers and social security numbers...
Prepared Statements – by the Numbers!
Always be Prepared…. In our last discussion on prepared statements in couchbase we talked about the performance gains that are possible using prepared statements. I thought I’d post a “sequel” with a few real world examples and numbers using the...
Prepare for This!
Get Prepared…. One of the more impressive aspects of using N1QL is the ability to use prepared statements. What are prepared statements? Why use them? What’s the big deal? Consider the following example from the travel-sample bucket and dataset that are bundled...
Mass Deleting Documents by Compound Key Prefix Using Node.js
A common question that gets asked in the Couchbase forums and on Stack Overflow is how to delete all records from a bucket that have a key that starts with some value. In other words, how to delete all records...
Making a Game API Server Using Node.js: Revisited
A few years ago, Brett Lawson made a great blog series on using Couchbase Server and Node.js for the development a game server framework. Since then, the Node.js SDK for Couchbase has grown significantly from version 1.x to 2.x. In...