How to retrieve a list of keys/documents in couchbase database in C#

后端 未结 5 1249
说谎
说谎 2021-01-01 02:01

I\'m totally new to couchbase.

This is the sample code I use for insert and get documents:

using (var bucket = Cluster.OpenBucket())
{
    var docume         


        
5条回答
  •  佛祖请我去吃肉
    2021-01-01 02:41

    N1QL Developer previews must use views. Your syntax of create index is accurate, but Couchbase 4.0 is also introducing secondary indexes and the ability to scale query and index capabilities dynamically. When this happens, called "Multi-Dimensional Scaling", N1QL should default to the new indexes as the primary indexing scheme, and much much faster than views.

    More can be read about multi-dimensional scaling here:

    http://www.couchbase.com/coming-in-couchbase-server-4-0

提交回复
热议问题