Re: FYI: View performance improvements (iOS)

2014-07-17 Thread Jens Alfke
On Jul 16, 2014, at 9:32 PM, Ragu Vijaykumar wrote: > Hmm, I just updated to this new code and all of a sudden, none of my > CBLQuerys are returning any rows. I haven't changed anything else in my > database. Is there something new that I need to do with these changes. No, everything should s

Re: FYI: View performance improvements (iOS)

2014-07-17 Thread Ragu Vijaykumar
Here is an example of a query: static NSString* const kSCLabTagIdView = @"SCLabTagIdView"; CBLDatabase* database = [[CBLManager sharedInstance] existingDatabaseNamed:kLabReferenceDatabase error:nil]; CBLView* view = [database viewNamed:kSCLabTagIdView]; if(!view.mapBlock) {

Re: How to get server database info

2014-07-17 Thread Ami Kapadia
Hi! I am using : Todo example - https://github.com/couchbaselabs/TodoLite-PhoneGap JS code - https://github.com/couchbaselabs/TodoLite-PhoneGap/blob/master/js/index.js Now, how can I fetch CouchDB server's database info like "update_seq", "doc_count"? Here is information of my CouchDB database

Re: FYI: View performance improvements (iOS)

2014-07-17 Thread Jens Alfke
On Jul 17, 2014, at 3:39 AM, Ragu Vijaykumar wrote: > self.labTagIdQuery = [[self.reference queryLabTagId] asLiveQuery]; > self.labTagIdQuery.limit = 30; > [self.labTagIdQuery addObserver:self forKeyPath:@"rows" options:0 > context:NULL]; > > - (NSInteger)numberOfSectionsInTableVie

Re: How to get server database info

2014-07-17 Thread Jens Alfke
On Jul 17, 2014, at 9:37 AM, Ami Kapadia wrote: > Now, how can I fetch CouchDB server's database info like "update_seq", > "doc_count"? Just use an XHR to GET /dbname from the remote server, and parse the response as JSON. If you'd rather use a library, there are a bunch of JS CouchDB librari

Converting couchdb json file to cblite file

2014-07-17 Thread azhar bandri
Is it possible somehow to convert the json file from couchdb to cblite file? -- 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 mobile-couchbase+unsubscr...@goo

Re: How to get server database info

2014-07-17 Thread Traun Leyden
s/coux/coax Link: https://github.com/jchris/coax On Thu, Jul 17, 2014 at 10:14 AM, Jens Alfke wrote: > > On Jul 17, 2014, at 9:37 AM, Ami Kapadia wrote: > > Now, how can I fetch CouchDB server's database info like "update_seq", > "doc_count"? > > > Just use an XHR to GET /*dbname* from the re

Re: trying to connect to sync.couchbasecloud.com

2014-07-17 Thread Traun Leyden
Milt, Couchbase Cloud is fairly limited, so I'd recommend that you run your own Sync Gateway. To that end, I recently wrote up a blog article on how to get Sync Gateway running on Google Compute Engine / Docker: http://tleyden.github.io/blog/2014/06/22/running-couchbase-sync-gateway-on-gce/ and

Re: Converting couchdb json file to cblite file

2014-07-17 Thread Jens Alfke
On Jul 17, 2014, at 6:50 AM, azhar bandri wrote: > Is it possible somehow to convert the json file from couchdb to cblite file? I'm not sure what you mean. CouchDB and Couchbase Lite use the same data format; but you probably won't need to transfer documents by hand when you can let the repli

Couchbase Lite iOS unsupported array type in CBLModel

2014-07-17 Thread Sebastien ARBOGAST
I'm trying to use an array property in a CBLModel subclass like this: @interface ECParkingSession : CBLModel @property (strong, nonatomic) NSDate *startDate; @property (strong, nonatomic) NSDate *endDate; @property (strong, nonatomic) NSDate *plannedEndDate; @property (strong, nonatomic) NSNumber

Re: Couchbase Lite iOS unsupported array type in CBLModel

2014-07-17 Thread Jens Alfke
On Jul 17, 2014, at 1:43 PM, Sebastien ARBOGAST wrote: > + (Class) registeredDevicesItemClass { > return [NSString class]; > } You don't actually need this method, since NSString is already JSON-compatible. The array handler in CBLModel can handle arrays of JSON-compatible data without a

Re: Couchbase Lite iOS unsupported array type in CBLModel

2014-07-17 Thread Sebastien ARBOGAST
Thanks a lot. --- Sébastien Arbogast http://sebastien-arbogast.com 2014-07-17 23:00 GMT+02:00 Jens Alfke : > > On Jul 17, 2014, at 1:43 PM, Sebastien ARBOGAST < > sebastien.arbog...@gmail.com> wrote: > > + (Class) registeredDevicesItemClass { > return [NSString class]; > } > > > You don’t a

Monitoring document changes

2014-07-17 Thread Sebastien ARBOGAST
I'm experimenting with CouchBase Server, CouchBase Sync Gateway and CouchBase Lite to build a no-backend style application. It's really awesome that data replication between my iOS app and CouchBase server allows me to skip developing a custom API. But there are still things I need to do from t

Re: Monitoring document changes

2014-07-17 Thread Jens Alfke
On Jul 17, 2014, at 2:18 PM, Sebastien ARBOGAST wrote: > Is there any API or technique to monitor data changes on the server side, > listen to data change events and do something when certain changes happen? Is > it something I should do in Sync Gateway's sync function? Is there a way to > d

Re: Monitoring document changes

2014-07-17 Thread Matt Ingenthron
From: Sebastien ARBOGAST mailto:sebastien.arbog...@gmail.com>> Reply-To: "mobile-couchbase@googlegroups.com" mailto:mobile-couchbase@googlegroups.com>> Date: Thursday, July 17, 2014 at 2:18 PM To: "mobile-couchbase@googlegroups.com

Re: FYI: View performance improvements (iOS)

2014-07-17 Thread Ragu Vijaykumar
This is my observer code. It reloads the tableview, but still nothing comes through. - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { [self.ta

Sync Gateway is down

2014-07-17 Thread Seung Chan Lim
http://sync.couchbasecloud.com/ seems to be down What's the protocol for when you notice that the sync gateway is down? slim -- 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,

Re: Sync Gateway is down

2014-07-17 Thread Traun Leyden
Hi Seung, Thanks for the heads up! I restarted the sync gateway service and TodoLite-Android is now working for me. Can you try again? On Thu, Jul 17, 2014 at 3:53 PM, Seung Chan Lim wrote: > http://sync.couchbasecloud.com/ seems to be down

Re: Converting couchdb json file to cblite file

2014-07-17 Thread azhar bandri
Actually I'm trying to implement the pre-build database concept of couch base in android application. I have a couchdb data that i need to convert to cblite file, so that i can put the file in assets of my application. This will help me to init the application with existing data and reduce the