Performance tuning

Though the PHP SDK and Couchbase Server are extremely performant, you can follow these guidelines to ensure the most effective use of your computing resources:

  • Couchbase bucket connections are relatively expensive to establish in relation to the operations performed on them. Because of this, you should open each bucket only once per application instance. Due to multiplexing performed within the SDK, opening multiple connections can cause issues and will not benefit performance in most cases.
  • Don't use too many views and buckets. A large number of buckets or views can negatively affect the performance of Couchbase Server and any connected clients.