Couchbase N1QL Prepared Statements: What the Plan Cache Actually Buys You
Prepared statements let Couchbase N1QL reuse a query plan instead of re-parsing every request. Here is the PREPARE/EXECUTE cycle, a reproducible example, and the stale-plan trade-off.