An old post to this group indicates that when using Sync Gateway, the underlying Couchbase Server bucket cannot be accessed by other clients:
“(…) you should* not* directly access Couchbase to update/store docs if you're using [Sync Gateway]. Sync Gateway is the intermediary that manages all the changes metadata/state for incoming/outgoing docs, and bypassing it would likely make a mess of the sync state of the docs. Instead, you'd probably want to do any/all changes to docs via the CouchDB-esque REST API that Sync Gateway provides.” https://groups.google.com/forum/#!msg/mobile-couchbase/QVSZqYkTe5I/uIzN1mk6coYJ The way I read this is that Sync Gateway uses a Couchbase Server bucket as its *private* storage. If you use Sync Gateway you need to deal with a different API than the Couchbase Server API. Also, features of Couchbase Server (like indexing & map-reduce) are not supported, or work different. Basically you are now dealing with a different type of database, which happens to use Couchbase Server to store its data. Am I correct in these assumptions? Also, if I were to access the data on my Sync Gateway server using a C# .NET client, which library should I use? A “raw” “CouchDB-esque” REST API? I would presumably not be able to use the regular .NET client ( http://www.couchbase.com/communities/net/getting-started ), as this library only accesses Couchbase Server, not Sync Gateway. So I get a better development experience at the client, but at the server I cannot any longer use the strong libraries for connecting to Couchbase. I wanted to use all features of Couchbase (replication, scalable storage, indexes) and have server processes access it directly. Then parts of the data should be replicated to clients using Sync Gateway. But I guess this is not possible. Kind regards, Runar -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/b033e5f3-1466-4b6d-a0a1-4f217958d431%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
