Erlang view fiter

21 views
Skip to first unread message

dyowee

unread,
Jan 17, 2016, 6:16:41 PM1/17/16
to Couchbase Mobile
Good day,

I tried to create an Erlang view replication filter, in place of a JavaScript one, hoping that it would be faster. But it seems that it is slower. Does Couchbase mobile support this already?

Jens Alfke

unread,
Jan 17, 2016, 6:22:44 PM1/17/16
to mobile-c...@googlegroups.com

On Jan 17, 2016, at 3:16 PM, dyowee <csharpen...@gmail.com> wrote:

I tried to create an Erlang view replication filter, in place of a JavaScript one, hoping that it would be faster. But it seems that it is slower. Does Couchbase mobile support this already?

Erlang? We don’t support Erlang. Are you thinking of CouchDB?

—Jens

dyowee

unread,
Jan 17, 2016, 8:45:14 PM1/17/16
to Couchbase Mobile
Yes, I meant I created the pull replication filter in CouchDB. But when I try to sync/replicate Couchbase mobile to the CouchDB server, it got slower that using a JavaScript filter. 

Jens Alfke

unread,
Jan 17, 2016, 10:38:35 PM1/17/16
to mobile-c...@googlegroups.com

On Jan 17, 2016, at 5:45 PM, dyowee <csharpen...@gmail.com> wrote:

Yes, I meant I created the pull replication filter in CouchDB. But when I try to sync/replicate Couchbase mobile to the CouchDB server, it got slower that using a JavaScript filter. 

A pull-replication filter runs on the server, and the client (Couchbase Lite) has nothing to do with it — it just sends the filter name, and lets the server decide which docs are sent. So, sure: Couchbase Lite works with server-side filters written in JS, Erlang, Ruby, Clojure, Pascal, FORTRAN, IBM\360 assembly code… ;-)

If the Erlang filter runs slower than an equivalent JS one, that’s something you should ask about on a CouchDB forum.

—Jens
Reply all
Reply to author
Forward
0 new messages