On Dec 12, 2013, at 2:19 PM,
ma...@elmalabarista.com wrote:
> - Exist a hosted version of couchbase that I can rely on? That was the reason behind
choseparse.com. If not, how much servers I need to start? The data of each company is small (ie: few hundreds of customers and products, 1-200 invoices per day with related inventory).
There’s an experimental hosted service at
http://couchbasecloud.com but you shouldn’t use it for a real product. There may be more serious hosting services coming, but we can’t comment on that.
You should be able to run on a single server. We have an AWS configuration that’s easy to set up, but I’m not sure exactly how to get ahold of it.
> - Is possible in a transaction to update multiples tables (like invoice header, invoice details, payment details)?
Usually you store all related documents in a single database, even if in a relational database they’d be in different tables. It’s common to use a “type” property to distinguish between different types of documents.
You can update multiple documents at once using the database’s -inTransaction method.
> - Is possible to have a reliable sync if the device lost connection for several hours/days?
Yes.
> - When the data is updated in client A, is propagated to client B & C or I need to do polling?
If B and C have active ‘pull’ replications, they’ll receive the change in a second or two.
> - I update the data in sqlite and replicate it with couch. If the sync is not successfully, then is possible to retry it?
Once you’ve updated documents in Couchbase Lite, and set up a replication, it’ll keep trying to replicate them until it succeeds.
> - The query language will be available soon in the iOS library?
Do you mean the experimental query language (NiQL) being developed for Couchbase Server? We don’t have any plans to put that into Couchbase Lite yet.
> - Is possible to monitor the sync? Like providing a progressbar?
Yes, observe the notifications the CBLReplication posts.
> - Is possible to know if the client is up-to-date with the server? Like for purge the couch data locally and start again clean...
Yes, when the replication’s status changes to ‘idle’ that means everything is up to date.
> - Exist a sample in integrate with sqlite?
Not that I know of.
—Jens