You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Johannes Schneider <ma...@cedarsoft.com> on 2010/09/04 10:36:38 UTC

[Newbie] Partial replication

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

I have started learning CouchDB two days ago. And I really like it.
While I have read a good part of CouchDB The Definitive Guide, I might
have missed the crucial part..

At first I wanna say thanks for that great product. The first impression
is impressive...
Second I have a question about attachments and/or replication.


Think about that kind of product:
Storage of (large) media files (e.g. raw photos). For each media file
there are a lot of data entries (comments, ratings, discussions...).
And of course there are previews in different sizes.

Now I'd like to implement a client on Android (based on
http://www.couch.io/android). And I like that idea of replicating the
database to the mobile device.
But of course I just want a part of my database on the Android.
I never want the large raw files. And I don't only need a part of the
previews (those that correspond to the screen size).

But I also don't want to download the complete database (which might
contain millions of documents). I'd prefer to have some kind of
semi-intelligent algorithm (maybe download the last n entries or
something like that). Or maybe just some documents used for overview
pages (view results).
And of course it should be possible to download the missing documents on
request...


Is this possible with CouchDB? If yes, could you give me some
hints/keywords so that I can continue my search...




Thanks,

Johannes Schneider
- -- 
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMggUSAAoJEAytD9R7Qv6db/8H/AjvnJNl3FSWyHvY5+lJ4Cuf
+Q3Ud/qsSXJPzsh+XJOQBBlgyG0hcIIXVG+G+Kv8tX5MloT/fWGSMVM8nYHPZ9Gj
MHVS16Oc5+WDPp9j+mc3WWV3yYLPz6J6Qfk26RKR8M9Jpu9VrcTWS00PQJSuKE3/
4RFBQMCQg5o/hVdEwCzp4V0y07fXyNlhc2cDFEIUyYOi0OWahwej3OasTyvDkPK9
5JFB30/A/Nn1SMrgrMvisP1+LyMG5hxphY3X7GjUnHHkQOcZ9H9PPS8GN69MxZ9N
0w9D79E8ReTrFLy3sic7f4AKwKyhD1/p9mI/tiwJDwjzuYkj1hPimq1j/xMwE1s=
=0eI2
-----END PGP SIGNATURE-----

Re: [Newbie] Partial replication

Posted by Johannes Schneider <ma...@cedarsoft.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/04/2010 03:55 PM, Kenny Stone wrote:
> Filtered replication
> 
> http://wiki.apache.org/couchdb/Replication#Filtered_Replication

Thanks. Missed that completely...

One more link I found useful (if anybody else reads this in the future):
http://blog.couch.io/post/468392274/whats-new-in-apache-couchdb-0-11-part-three-new

I will start a few tests...

> 
> --
> Kenny
> 
> On Sep 4, 2010, at 3:36, Johannes Schneider <ma...@cedarsoft.com> wrote:
> 
> Hi guys,
> 
> I have started learning CouchDB two days ago. And I really like it.
> While I have read a good part of CouchDB The Definitive Guide, I might
> have missed the crucial part..
> 
> At first I wanna say thanks for that great product. The first impression
> is impressive...
> Second I have a question about attachments and/or replication.
> 
> 
> Think about that kind of product:
> Storage of (large) media files (e.g. raw photos). For each media file
> there are a lot of data entries (comments, ratings, discussions...).
> And of course there are previews in different sizes.
> 
> Now I'd like to implement a client on Android (based on
> http://www.couch.io/android). And I like that idea of replicating the
> database to the mobile device.
> But of course I just want a part of my database on the Android.
> I never want the large raw files. And I don't only need a part of the
> previews (those that correspond to the screen size).
> 
> But I also don't want to download the complete database (which might
> contain millions of documents). I'd prefer to have some kind of
> semi-intelligent algorithm (maybe download the last n entries or
> something like that). Or maybe just some documents used for overview
> pages (view results).
> And of course it should be possible to download the missing documents on
> request...
> 
> 
> Is this possible with CouchDB? If yes, could you give me some
> hints/keywords so that I can continue my search...
> 
> 
> 
> 
> Thanks,
> 
> Johannes Schneider

- -- 
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJMgmEdAAoJEAytD9R7Qv6d6KoH/2t3v06HmqhUW4P4nttalPVL
Je8J9T3Z/xgGLJYSZexE0Gqust5fVdd1djr0enxrQ0urt4FEFqUO/TDxvOapgUUg
ifj33qmB//cCPQ9xt3dfV+bU0yyW+z7R3DEFUEzjdwBnTwEL1zp4xoP97avRKEQK
gEXhQRTTNgVxCHTncYNAtiH5fvEKvvVhcEC8LFm7jIBsbrFBTHPf0jJL2FlZS92w
NSsesBkpA4vaueTmS8o0JjlvFFgnACOlFikKAFzsAxZyFHmJ3+XmQCUx67UODxCC
PzJsQOKCL6Xq6h5QTIQoqeCOE2YkZVkYhC3Jy/jr8Vf47zaVa0YF8Drv/hgxXkM=
=FBe0
-----END PGP SIGNATURE-----

Re: [Newbie] Partial replication

Posted by Kenny Stone <ks...@connamara.com>.
Filtered replication

http://wiki.apache.org/couchdb/Replication#Filtered_Replication

--
Kenny

On Sep 4, 2010, at 3:36, Johannes Schneider <ma...@cedarsoft.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi guys,
> 
> I have started learning CouchDB two days ago. And I really like it.
> While I have read a good part of CouchDB The Definitive Guide, I might
> have missed the crucial part..
> 
> At first I wanna say thanks for that great product. The first impression
> is impressive...
> Second I have a question about attachments and/or replication.
> 
> 
> Think about that kind of product:
> Storage of (large) media files (e.g. raw photos). For each media file
> there are a lot of data entries (comments, ratings, discussions...).
> And of course there are previews in different sizes.
> 
> Now I'd like to implement a client on Android (based on
> http://www.couch.io/android). And I like that idea of replicating the
> database to the mobile device.
> But of course I just want a part of my database on the Android.
> I never want the large raw files. And I don't only need a part of the
> previews (those that correspond to the screen size).
> 
> But I also don't want to download the complete database (which might
> contain millions of documents). I'd prefer to have some kind of
> semi-intelligent algorithm (maybe download the last n entries or
> something like that). Or maybe just some documents used for overview
> pages (view results).
> And of course it should be possible to download the missing documents on
> request...
> 
> 
> Is this possible with CouchDB? If yes, could you give me some
> hints/keywords so that I can continue my search...
> 
> 
> 
> 
> Thanks,
> 
> Johannes Schneider
> - -- 
> Johannes Schneider - blog.cedarsoft.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> 
> iQEcBAEBAgAGBQJMggUSAAoJEAytD9R7Qv6db/8H/AjvnJNl3FSWyHvY5+lJ4Cuf
> +Q3Ud/qsSXJPzsh+XJOQBBlgyG0hcIIXVG+G+Kv8tX5MloT/fWGSMVM8nYHPZ9Gj
> MHVS16Oc5+WDPp9j+mc3WWV3yYLPz6J6Qfk26RKR8M9Jpu9VrcTWS00PQJSuKE3/
> 4RFBQMCQg5o/hVdEwCzp4V0y07fXyNlhc2cDFEIUyYOi0OWahwej3OasTyvDkPK9
> 5JFB30/A/Nn1SMrgrMvisP1+LyMG5hxphY3X7GjUnHHkQOcZ9H9PPS8GN69MxZ9N
> 0w9D79E8ReTrFLy3sic7f4AKwKyhD1/p9mI/tiwJDwjzuYkj1hPimq1j/xMwE1s=
> =0eI2
> -----END PGP SIGNATURE-----