CBL .Net 4.5 :: Is there a limit of number of document can be written synchronously when using sync_gateway?

24 views
Skip to first unread message

Sherry Ummen

unread,
Aug 23, 2014, 1:07:10 PM8/23/14
to mobile-c...@googlegroups.com
Hello,

   Is there a limit of number of document which can be written synchronously when using sync_gateway?

I trying with a desktop app and when I start writting about 11000 documents using PutProperties; then initial about 40 documents are written and rest are not written to couchbase server.

The sync_gateway console does not tell much.

a00-8a7b-40a0-85a9-33ad26a019d9]] branched:false}
22:16:56.258145 Changes+: MultiChangesFeed sending &{Seq:124 ID:df2586cd-ad7e-4f
57-88e9-dbb3e8332bd8 Deleted:false Removed:{} Doc:map[] Changes:[map[rev:1-ad559
cdf-8e9f-45b3-91b5-b452a6dc0e08]] branched:false}
22:16:56.259151 Changes+: MultiChangesFeed sending &{Seq:125 ID:de9fe86d-ce3d-4a
ad-9d54-9c30da1145dd Deleted:false Removed:{} Doc:map[] Changes:[map[rev:1-9dd24
946-96a3-48f3-ad1e-8b3a5303ba29]] branched:false}
22:16:56.260144 Changes+: MultiChangesFeed sending &{Seq:126 ID:67cd3833-fc21-40
b5-91c6-b407a1a9e3e8 Deleted:false Removed:{} Doc:map[] Changes:[map[rev:1-5b40e
131-d851-4264-8e4a-33ee07a3b9fd]] branched:false}
22:16:56.261144 Changes: MultiChangesFeed done
22:16:56.262144 HTTP+: #088:     --> 200 OK  (0.0 ms)
22:17:56.869599 Cache: Pruned 30 old entries from channel "*"


COuld some one help to figure out whats wrong why documents are not written to cuchbase server.

_Sherry

Jens Alfke

unread,
Aug 23, 2014, 2:13:19 PM8/23/14
to mobile-c...@googlegroups.com
On Aug 23, 2014, at 10:07 AM, Sherry Ummen <sherry...@gmail.com> wrote:

   Is there a limit of number of document which can be written synchronously when using sync_gateway?

The replicator has no limits on the number of documents. But the replicator is never synchronous: it runs in the background.

I trying with a desktop app and when I start writting about 11000 documents using PutProperties; then initial about 40 documents are written and rest are not written to couchbase server.

PutProperties writes to the local database. Did all the documents show up there first?

22:16:56.258145 Changes+: MultiChangesFeed sending &{Seq:124 ID:df2586cd-ad7e-4f

The "Changes" logs tell you about documents on the gateway being sent to clients, which is the opposite direction of what you're interested in. I suggest turning on "CRUD", which will log info about docs being written to the gateway.

—Jens

Sherry Ummen

unread,
Aug 23, 2014, 10:34:08 PM8/23/14
to mobile-c...@googlegroups.com
PutProperties writes to the local database. Did all the documents show up there first?

No its stuck there also.

 I suggest turning on "CRUD", which will log info about docs being written to the gateway.

I think I have it on. I have the follwoing configuration

{
    "interface": ":4984",
    "adminInterface": ":4985",
    "log": ["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "Changes", "Changes+"],
    "databases": {
        "sync_gateway": {
            "server": "http://localhost:8091",
            "bucket": "sync",
            "sync": `function(doc) {channel(doc.channels);}`,
            "users": {
                "GUEST": {
                    "disabled": false,
                    "admin_channels": ["*"]
                },
                "Administrator": {
                    "password": "platform",
                    "disabled": false,
                    "admin_channels": ["*"]
                }
            }
        }
    }
}

Reply all
Reply to author
Forward
0 new messages