How can I change the default expires time when I use 4984 port?
On Monday, April 20, 2015 at 5:20:31 PM UTC+8, ajres wrote:
@atom992
You can only provide a custom ttl via the ADIM API on port 4985
--
You received this message because you are subscribed to the Google Groups
Couchbase
Hi,can I auth user by 4984 with specified expires time as message body?
I try to set expires time by add ttl in message body but not works.
I want to auth user and set expires time to specified values.
On Thursday, January 22, 2015 at 2:41:34 PM UTC+8, Jens Alfke wrote:
On Jan 21, 2015, at
of this user. the old session will
still in memory of sync gateway until expire time reached.
On Wednesday, May 6, 2015 at 7:42:30 AM UTC+8, Jens Alfke wrote:
On May 5, 2015, at 2:45 PM, atom992 yangzi...@gmail.com javascript:
wrote:
so my question is how can I limit the session‘s number
Hi,all
I am using Couchbase Lite 1.0.4 on Android and sync gateway 1.0.4.I
have a question about sync gateway's channel.If I have a user U with role
role1,document A set : access(doc._id,role1). and I have sync the
document A with user U. I want to know that If the user's role role1 has
Hi,all
I am using sync gateway 1.0.4, my sync function like this :
function(doc,oldDoc){
if (doc.type == MESSAGE) {
if(doc.key_id){
var key_id = doc.key_id;
channel('k-'+key_id);
}
}
}
and my doc like
this:{id:MSG001,type:MESSAGE,key_id:key001,body:test1}
when I
+8, Jens Alfke wrote:
On May 5, 2015, at 12:53 PM, atom992 yangzi...@gmail.com javascript:
wrote:
I want to know that If the user's role role1 has been removed. what
happend on my couchbase Lite with document A? will document A be
removed(that what I want to do)?
Almost. It'll
Hi,all
I can get HTTP/1.1 200 OK response with Set-Cookie:
SyncGatewaySession=* and authentication_handlers info.
and when I call this api again, I can get another SyncGatewaySession info.
so my question is how can I limit the session‘s number per user? such as
one user can only get one
Does *Couchbase Lite for Java Native *is the same with:
https://github.com/couchbaselabs/couchbase-lite-local/releases/download/v0.0.5-pre/couchbase-lite-local.jar
?
if not, what the relationship between couchbase-lite-local and *Couchbase
Lite for Java Native?*
How can I use *Couchbase Lite
Hi,all
I have a trouble in changing access of channel,:
I have three docs:
doc A like this:{type:typeA,key:keyA}
doc B like this:{type:typeB,key:keyB}
doc C like
this:{type:typeC,key:keyC,refer_id:keyA,user_id:user1}
and one user:user1 with no roles and admin_channels in sync gateway.
Thank you very much.
On Monday, May 18, 2015 at 10:23:57 PM UTC+8, ajres wrote:
@atom992
If you started a new sync after you changed docC you should only get docB
and docC.
If you ran sync from the start then once docA has been sync'd to the
client it will not be removed if the user
my whole sync function like this:
function(doc,oldDoc){
if(doc.type == type1){
if(doc.key_id1){
channel('u-' + doc.key_id1);
}
}
if(doc.type == type2){
if(doc.key_id){
channel('b-'+doc.key_id);
}
}
}
If I use switch I get right result.
On Tuesday, May 12, 2015 at
can *Couchbase Lite for Java Native 1.1 run with sync gateway 1.0.4?*
On Wednesday, May 13, 2015 at 3:07:19 PM UTC+8, Jens Alfke wrote:
We’re preparing to release version 1.1 of Couchbase Mobile in a week or
so, and would like the community to take a look and give us feedback. Below
you’ll
Hi,I want to know that why I need add username/password and headers with
cookies info both in remote to sync doc ? I think headers with Cookies is
enough(Cookies info indicated username and password), why I need to
add username and password in remote object?
On Thursday, November 21, 2013 at
Hi,I want to know that how can I modify/get docs by SG REST APIs
with SyncGatewaySession?
I can get docs by add Authorization header with Basic certificate of some
user(this need name and password), but I want to do the same thing by
SyncGatewaySession(Cookies),
because I already get the
Thank you very much. I can get/modify docs by SyncGatewaySession now.
On Saturday, June 27, 2015 at 10:14:05 PM UTC+8, ajres wrote:
@atom992
I just ran the following against a clean Sync Gateway (master) DB with a
user defined in config.json
```
user1: {disabled: false
The current version on couchbase site
http://www.couchbase.com/nosql-databases/downloads#Couchbase_Mobile of
couchbase Lite and Couchbase Sync Gateway is *1.0.4*, I am so confused what
different between *1.0.4* and *1.0*?
On Thursday, May 22, 2014 at 4:12:18 AM UTC+8, Jens Alfke wrote:
The
UTC+8, Jens Alfke wrote:
On Jun 15, 2015, at 9:25 AM, atom992 yangzi...@gmail.com javascript:
wrote:
I am thinking about how long should I design the length of document IDs.
As we know,All document meta‐ data, including the document ID, is stored in
memory at all times
That’s
I want to extend the capacity of Sync Function, in the follows user cases:
some ACL datas can stored in the third party databases, in Sync Function
can call the databases APIs to handle channel route, assigns etc.
As we know, ACL datas must be with the same docs which can be handled by
Sync
Thank you very much.
On Thursday, July 2, 2015 at 11:56:33 AM UTC+8, atom992 wrote:
I am using PhoneGap to develop a android app, and I wrote a view like this:
db.put(design, {
views : {
getIDByKey : {
map : function (doc
I am using PhoneGap to develop a android app, and I wrote a view like this:
db.put(design, {
views : {
getIDByKey : {
map : function (doc) {
if(doc.type doc.key){
Thanks, It works.
and How can I use other values in meta object? such as rev,expiration,flags.
On Thursday, July 2, 2015 at 11:56:33 AM UTC+8, atom992 wrote:
I am using PhoneGap to develop a android app, and I wrote a view like this:
db.put(design, {
views
I have two docs like this:
*{_id:doc1,type:TYPE1,key:200,create_time:201506231000,field1:a,field2:b}*
*{_id:doc2,type:TYPE2,key:200,create_time:201506241200,field3:c}*
My Map function like this:
function (doc,meta) {
if (doc.type == TYPE1 doc.key doc.create_time doc.field1 doc
.field2){
I have the same problem , when I used chrome to set a XHR request to SG
REST API, I can find the request method is not POST but OPTIONS. I thought
it is a CROS issue, but it is not.
On Tuesday, May 5, 2015 at 10:59:10 PM UTC+8, Suraj Khurana wrote:
While testing you app, some pre-flight call
Is that means If I have a view named View1 on couchbase server behind
syncgateway, and I have a view named View1 on couchbase Lite, when I start
replication, I will got a Conflict?
On Friday, June 27, 2014 at 9:36:25 PM UTC+8, pe...@kroegholt.dk wrote:
Hi,
I can successfully PUT a new
Thank you very much.
and I want to know that:
Is this function be the correct usage ?
If I want to sort by *create_time* and using paging , what should I do?
On Saturday, July 4, 2015 at 1:06:46 AM UTC+8, Jens Alfke wrote:
On Jul 3, 2015, at 9:30 AM, atom992 yangzi...@gmail.com javascript
I am testing attachment sync between SyncGateway(1.1) and CBL(1.1) on
Android(5.0.1) emulator using REST API, I can sync attachment from CBL to
SG, but when I try to sync attachment from SyncGateway to CBL, I found
the completed_change_count of ActiveTasks really add 1,but I can not find
and attachment. It's probably worth
checking with a breakpoint that you're getting the latest revision from CBL
as well.
James
On Monday, 6 July 2015 13:54:35 UTC+2, atom992 wrote:
I am testing attachment sync between SyncGateway(1.1) and CBL(1.1) on
Android(5.0.1) emulator using REST API, I can
is [].
and in the response of CBL _changes API, I found the last_seq havn't
add(but when I created a doc, the last_seq added,CBL got the doc).
James
On Monday, 6 July 2015 16:42:07 UTC+2, atom992 wrote:
On Monday, July 6, 2015 at 10:30:24 PM UTC+8, James Nocentini wrote:
From the logs, I'm
Is there a plan for android about the ‘feature/lazy_attachments’?
On Friday, August 7, 2015 at 4:42:50 AM UTC+8, Jens Alfke wrote:
I’m working on support for deferring attachment downloads — you’ll be
able to tell a pull replication not to download attachment contents, and
then you can
docA {type:TYPE1,KEY1:value1} have channel(channel1);
and USER1 was assigned to channel1;
and when I start sync, docA has synced to USER1's CBL;
Now some logic trigger the sync function, cause USER1 don'e have channel1;
but at the same time,docA still in USER1's CBL,right?
If I deleted docA from
Hi, I want to log the modification of doc (I think it is important) , so I
want to log request user in sync function,but I found I can not get request
user from [userCtx.user]. I know that sync gateway must know the request
user, and I can get the request user from HTTP log like this:
On Friday, July 17, 2015 at 1:52:17 PM UTC+8, Jens Alfke wrote:
On Jul 16, 2015, at 10:30 PM, atom992 yangzi...@gmail.com javascript:
wrote:
startkey=[key1,type1]
endkey=[key1,type1,{}]
Yup, that’s exactly right.
I try to query the data using the startkey and endkey by RCBL EST API
If the replicator can post the reason of why sync gateway reject the doc at
the same time, It will be better for CBL to handle the conflict depend on
the error message.
On Thursday, July 16, 2015 at 4:57:59 PM UTC+8, Jonas Schmid wrote:
Posted here:
Thank you very much.for REST API, I can do the same logic I see.
On Thursday, July 16, 2015 at 2:48:31 AM UTC+8, Jens Alfke wrote:
On Jul 15, 2015, at 10:27 AM, atom992 yangzi...@gmail.com javascript:
wrote:
can you give me the link,please?
Sure
http://developer.couchbase.com/mobile
On Thursday, July 16, 2015 at 1:11:54 AM UTC+8, Jens Alfke wrote:
On Jul 15, 2015, at 10:02 AM, atom992 yangzi...@gmail.com javascript:
wrote:
I have the same issue when using couchbaselite-phonegap-plugin(1.1 with SG
1.1,REST API). and at the same time, I also want to know, How should
If in the view function I emit([doc.key,doc.type.doc.status],doc.name) and
I want to query the data that belong to certain key and certain type, can
I use key range query?
such as:
startkey=[key1,type1]
endkey=[key1,type1,{}]
I try to query the data using the startkey and endkey by RCBL EST
Thank you very much. my mistake, I can query the data now.
On Friday, July 17, 2015 at 11:16:25 PM UTC+8, Jens Alfke wrote:
On Jul 17, 2015, at 4:51 AM, atom992 yangzi...@gmail.com javascript:
wrote:
GET
/cbldb/_design/poc/_view/getListByKey?stale=okconnection_timeout=6startkey=%5B
I have a phonegap-plugin based android group chat app, and I want to make
user in the same group can sync message.but I only want to sync the message
that created time posterior to the time that user join into group.
so In my doc design, I have some docs like:
group doc
On Thursday, April 23, 2015 at 12:15:04 AM UTC+8, Jens Alfke wrote:
On Apr 21, 2015, at 11:57 PM, Alex Lai alex...@gmail.com javascript:
wrote:
I try to use view parameter in _changes
Does CBL and SG have multi-get REST API?
such as
POST /{db}/_all_docs
API, but this API only return id, key, and value. The value object contains
the revision identifier in a rev object.
I want to get all docs info in one API, not just id and rev info.
--
You received this message because you
Got it by add query parameter include_docs=true.
On Tuesday, July 21, 2015 at 8:13:51 PM UTC+8, atom992 wrote:
Does CBL and SG have multi-get REST API?
such as
POST /{db}/_all_docs
API, but this API only return id, key, and value. The value object
contains the revision identifier
On Tuesday, July 21, 2015 at 3:07:43 AM UTC+8, Jens Alfke wrote:
On Jul 20, 2015, at 11:43 AM, atom992 yangzi...@gmail.com javascript:
wrote:
Hi, I am using couchbaselite-phonegap-plugin 1.1 for android, and when I
using REST api to get _changes with filter function and view function
On Tuesday, July 7, 2015 at 10:44:42 PM UTC+8, James Nocentini wrote:
Ok thanks, can you post a sample project on github with the issue you are
seeing?
It is base on ToDoLite demo with sync gateway 1.1 on my local env.
James
On Tuesday, 7 July 2015 16:39:44 UTC+2, atom992 wrote:
I
checking with a breakpoint that you're getting the latest revision from CBL
as well.
James
On Monday, 6 July 2015 13:54:35 UTC+2, atom992 wrote:
I am testing attachment sync between SyncGateway(1.1) and CBL(1.1)
on Android(5.0.1) emulator using REST API, I can sync attachment from CBL
for some business logic control for web apps.
On Thursday, July 9, 2015 at 9:55:48 AM UTC+8, atom992 wrote:
On Thursday, July 9, 2015 at 3:40:29 AM UTC+8, James Nocentini wrote:
So the ToDoLite PhoneGap
https://github.com/couchbaselabs/todolite-phonegap app isn't pulling
attachments
nodejs in front of sync gateway as proxy). I will do more test.
Thank you.
James
On Tuesday, 7 July 2015 18:00:11 UTC+2, atom992 wrote:
On Tuesday, July 7, 2015 at 10:44:42 PM UTC+8, James Nocentini wrote:
Ok thanks, can you post a sample project on github with the issue you
I am using CBL 1.1.0 android, and I modify the doc many times from CBL. Can
I get the history version of Doc info?
I can query doc by rev= ,but I can only get _id and _rev
info.
and when I query doc with revs=true_info=true, I can get history
version info, but
"status" : "missing"
Is there
I can get old doc info by create bucket with _revs_limit =5 now.
but I found I can get doc info with rev >= 1000 .
Is this a bug?
On Thursday, September 10, 2015 at 8:39:17 PM UTC+8, atom992 wrote:
>
>
>
> I am using CBL 1.1.0 android, and I modify the doc many times from CB
I am build a app, the business logic is following:
one user belong to 0-n company, one company have some documents.
I want to deploy couchbase and sync_gateway by company.
so I can manage documents by company. such as cluster deploy, backup and
restore by company.
I think it will be more
"That cache retains at least 50 entries " This means The Cache retains 50
entries totally, or The Cache retains at least 50 entries per Channel?
On Thursday, February 11, 2016 at 2:30:58 AM UTC+8, Adam Fraser wrote:
>
> Jens is correct that channels are fairly lightweight, but there are a few
>
Cool, Thanks. Can I custom the numbers of entries per Channel by environment
variable or Config?
On Sunday, February 14, 2016 at 3:58:19 PM UTC+8, Jens Alfke wrote:
>
>
> On Feb 13, 2016, at 11:51 PM, atom992 <yangzi...@gmail.com >
> wrote:
>
> "That cach
It's great! I will try to learn it.
On Wednesday, March 30, 2016 at 11:28:12 PM UTC+8, Jens Alfke wrote:
>
> A new class from Couchbase’s training program. This should be quite
> relevant to Couchbase Mobile developers.
>
> *New Online Training from Couchbase: CB105 Introduction to Data Modeling
//*SG_Accel_Cluster*:4984/sgdb/?rev= -d""
```
And Can I deploy SG_Accel_Node And SG_Node on the same mathine?
On Saturday, September 17, 2016 at 12:58:31 AM UTC+8, James Nocentini wrote:
>
> Preview docs for SG Accel are at
> https://github.com/couchbase/sync_gateway/wiki/Introduc
.
On Tuesday, September 20, 2016 at 12:02:49 AM UTC+8, atom992 wrote:
>
> Thank you. some questions:
> The architecture of My project looks like as following:
>
> CBLite <--> SG
>^
>|
>v
>
It still the same
http://packages.couchbase.com/releases/couchbase-sync-gateway/1.3.1/couchbase-sg-accel-enterprise_1.3.1-16_x86_64.tar.gz
On Wednesday, September 21, 2016 at 1:04:18 AM UTC+8, ad...@couchbase.com
wrote:
>
> @atom992 All web traffic should still be directed at the Sync G
ok it works now.Thank you.
On Wednesday, September 21, 2016 at 7:40:43 AM UTC+8, ad...@couchbase.com
wrote:
>
> That's been updated now - it should have the correct version available
> from the download page now. Thanks for pointing that out.
>
--
You received this message because you are
Any update about document of Sync Gateway Accelerator?
On Tuesday, February 16, 2016 at 12:27:33 AM UTC+8, Traun Leyden wrote:
>
> Hey Todd,
>
> The docs on sg_accel are still pending, but we're looking to have them
> pushed up in the next week or so.
>
> In the meantime we have some rough
57 matches
Mail list logo