Re: CBL 1.4 Background Database & View Indexing

2017-12-06 Thread Scott Ahten
Thanks Jens. I've been able to merge all existing views down to three. 1.4.1 seems to have helped significantly. On Friday, December 1, 2017 at 4:15:04 PM UTC-5, Jens Alfke wrote: > > > > > On Nov 29, 2017, at 9:06 AM, Scott Ahten <lightand...@gmail.com > > wrote

CBL 1.4 Background Database & View Indexing

2017-11-29 Thread Scott Ahten
I'm starting to run into performance issues on a iOS 1.4 CBL app with a very large number of documents (+30k). It seems that indexing is blocking queries and, in turn, blocking specific tasks. My strategy is as follows... First, drastically reduce the number of views to reduce the amount of

Re: Strategy for live searching using background thread on iOS

2016-09-16 Thread Scott Ahten
On Wednesday, August 31, 2016 at 4:00:27 PM UTC-4, Brendan Duddridge wrote: > > > However, this technique doesn't really work with Couchbase Lite because I > cannot access the model objects on the main thread those objects that I > fetched on the background thread using the NSOperationQueue. >

Re: Anyone still need iOS 7 support?

2016-08-29 Thread Scott Ahten
On Friday, August 26, 2016 at 8:25:22 PM UTC-4, Jens Alfke wrote: > > We’re weighing the pros and cons of dropping iOS 7 support in Couchbase > Lite. > > The big advantage is that we can package the framework as a proper dynamic > library, instead of as a static library. This will eliminate a

Re: Replicator lastError property

2016-04-12 Thread Scott Ahten
Thanks, Jens. I got that impression, but wanted to make sure. On Tuesday, April 12, 2016 at 12:39:27 PM UTC-4, Jens Alfke wrote: > > > Yeah, this is a problem with the API, and I’ve been unsure how to fix it. > It’s hard to convey error status when there are lots of requests running in >

Re: Replicator lastError property

2016-04-12 Thread Scott Ahten
ion server"}, On Monday, April 11, 2016 at 6:46:21 PM UTC-4, Scott Ahten wrote: > > I'm running into an issue with handling errors with replication with the > latest sync gateway and 1.1 or greater CBL. > -- You received this message because you are subscribed to the Googl

Replicator lastError property

2016-04-11 Thread Scott Ahten
I'm running into an issue with handling errors with replication with the latest sync gateway and 1.1 or greater CBL. During first login and sync, I'm using replicator change notifications to monitor the Replicator's lastError property, among others, to determine if an initial sync is

iOS client stop syncing

2016-03-28 Thread Scott Ahten
I've occasionally run into a situation where a client app running CBL stops syncing with the client. What is unusual is that sync does not restart even when the app is killed and restarted or even when the device is restarted. It simply stops syncing in both directions. This leads me to suspect

Dependency injection when creating custom model document ID in CBL 1.1.1+

2016-02-02 Thread Scott Ahten
While migrating an existing CBL iOS client to CBL 1.1.1, I've run into an issue where I need to inject a dependency for the logic that creates a custom document ID with multiple components, such as "type:GUID:subtype" In 1.1.1, we have - [CBLModel modelForDocument:], [CBLModel

Re: Dependency injection when creating custom model document ID in CBL 1.1.1+

2016-02-02 Thread Scott Ahten
Thanks for your quick reply. I was about to head down this road and your response told me I was headed in the right direction. Ended up making a class method to encapsulate creating the composite document ID. My creation class method looks similar to +

Purging unused attachments

2015-10-20 Thread Scott Ahten
I'm trying to replace hi-res photo attachments with low-res previews to reduce storage on-device after the hi-res photo has been synced to the gateway sever. As I understand it, the only way to remove the orphaned attachment is to call [CBLDatabase compact]. Correct? -- You received this

Check sync status

2015-09-09 Thread Scott Ahten
Let's say I have device with a number of local changes to a CBL database. After some time passes, I want remove the database with these changes from the device. However, I only want to remove the database if the device had actually connected to the network and successfully synced all of those

Re: Check sync status

2015-09-09 Thread Scott Ahten
Just what I was looking for. Thanks! On Wednesday, September 9, 2015 at 11:31:55 AM UTC-4, Jens Alfke wrote: > > > > On Sep 9, 2015, at 8:04 AM, Scott Ahten <lightand...@gmail.com > > wrote: > > > > What is the simplest way to determine if those cha

Re: Resolving Conflicts with iOS CBL

2014-10-30 Thread Scott Ahten
On Wednesday, October 29, 2014 1:40:04 PM UTC-4, Jens Alfke wrote: Aw crap, you're right — it's a mistake in my sample code. The line CBLUnsavedRevision *newRev = [*current* createRevision]; should be CBLUnsavedRevision *newRev = [*rev* createRevision];

Re: FYI: Enabling WebSockets when putting Sync Gateway behind nginx

2014-10-30 Thread Scott Ahten
I'm primarily focused on the mobile side of things but, IIRC, we ran into a similar problem on my current project, which was resolved via making a change to the config of nginx. I'll see what I can track down. On Thursday, October 30, 2014 4:54:10 AM UTC-4, Marcus Roberts wrote: I think

Re: Resolving Conflicts with iOS CBL

2014-10-29 Thread Scott Ahten
On Wednesday, October 29, 2014 1:40:04 PM UTC-4, Jens Alfke wrote: Aw crap, you're right — it's a mistake in my sample code. The line CBLUnsavedRevision *newRev = [*current* createRevision]; should be CBLUnsavedRevision *newRev = [*rev* createRevision];

Re: Resolving Conflicts with iOS CBL

2014-10-29 Thread Scott Ahten
Further investigation indicates all of the revisions being created are duplicates. For example 16:55:47.152| CBLDatabase: Duplicate rev insertion: f8ee7974-9558-4ba4-ba94-6a7ce98c58b4 / 111-de503a5a2c1cacbe39e645466980888e However, this revision does not have a parent. I'm guessing this

Re: Resolving Conflicts with iOS CBL

2014-10-29 Thread Scott Ahten
On Wednesday, October 29, 2014 5:12:01 PM UTC-4, Scott Ahten wrote: However, this revision does not have a parent. I'm guessing this is why [It's being flagged as a conflict] After stepping though the code, I've noticed the duplicate inserts have the correct parent sequence number

Re: FYI: Enabling WebSockets when putting Sync Gateway behind nginx

2014-10-29 Thread Scott Ahten
We have an instance of SyncGateway running behind nginx. One additional issue we ran into is a 1mb incoming limit set by default on nginx. This caused our app to get updates from other mobile clients and our web app, but prevented pushing updates of larger docs to the gateway. -- You

Resolving Conflicts with iOS CBL

2014-10-28 Thread Scott Ahten
I'm having difficulty resolving conflicts on a document with a large number of existing conflicts (100+) on iOS. Currently, my conflict resolution method is based on the Objective-C example

Re: Who's using full-text search or geo queries?

2014-05-11 Thread Scott Ahten
We're currently developing features using geo queries and plan on adding full text search in a future version. -- 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

Re: Deleting Database with large number of attachments

2014-04-07 Thread Scott Ahten
. On Monday, April 7, 2014 12:02:59 PM UTC-4, Jens Alfke wrote: On Apr 4, 2014, at 11:26 AM, Scott Ahten lightand...@gmail.comjavascript: wrote: Is there a safe way to push this work off to a background thread? Yes, CBLManager has a -backgroundTellDatabaseNamed:to: method that will run a block

Re: CBLModel Property as an Interface Rather Than a Class

2014-03-18 Thread Scott Ahten
On Monday, March 17, 2014 8:40:18 PM UTC-4, Jens Alfke wrote: Hm, good point. You can look at the implementation in CBLModel to see what it’s doing; IIRC, the Class returned from itemClassForArrayProperty: is only used if the CBLModelFactory doesn’t know what class to use for that

CBLModel Property as an Interface Rather Than a Class

2014-03-09 Thread Scott Ahten
I've run into a scenario where two CBLModel subclasses implement the same interface and I want to store a reference to either of these subclasses as a property on a third CBLModel subclass. The compeller doesn't complain, but I was unsure if CBLModel handle this scenario correctly. Note: both

Re: CBLModel Property as an Interface Rather Than a Class

2014-03-09 Thread Scott Ahten
On Sunday, March 9, 2014 5:34:46 PM UTC-4, Jens Alfke wrote: This will work fine. Internally, CBLModel calls the model-factory to resolve the docID into a model instance. —Jens Thanks for the quick turnaround, Jens! -- You received this message because you are subscribed to the