Hi.
I'm trying to run compact on Sync, but seems only limiting to 1000 revisions
I see you say on some Github issue to use the "revs_limit" database config,
but even setting that to 50 and restarting sync, compaction keeps 1000
revisions instead of the desired 50
this is my sync config.json
{
"interface":":4984",
"adminInterface":":4985",
"maxConnections":1024,
"log":["REST","CRUD"],
"databases":{
"pharmadvisor-mobile2":{
"server":"http://x:8091",
"bucket":"pharmadvisor-mobile2",
"username":"xxxx-mobile2",
"password":"xxxx",
"revs_limit":50,
"sync":`
function(doc) {
channel(doc.pmsync_channels);
access(doc.pmsync_usuario, doc.pmsync_channels);
access(doc.pmsync_usuarios, doc.pmsync_channels);
}`
}
}
}
El viernes, 5 de septiembre de 2014, 13:50:33 (UTC-5), Jens Alfke escribió:
>
>
> On Sep 5, 2014, at 9:31 AM, Foosh <[email protected] <javascript:>>
> wrote:
>
> Is there a way to monitor compaction status and when it completes?
>
>
> No :( I don't think I could add any effective progress indicator, because
> most of the time seems to be spent in one or two SQL statements.
>
> Or even a way to simply tell whether a database is in the process of
> compacting?
>
>
> It's compacting if you called -compact and the call hasn't returned yet :)
> You could define a global flag and set it before the call and clear it
> after.
>
> I know compaction performance isn't very good in 1.0 … ForestDB will take
> care of this problem, because it does auto-compaction in the background
> without blocking access to the database. (A preview of CBL+ForestDB should
> be available very soon. I'm just waiting on the ForestDB team to declare
> beta and open their repo to the public.)
>
> —Jens
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/c6bce928-851c-44b0-bc50-3f5991c92e3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.