Hi,

I am currently doing the same for my company as well.
You are going to face a bit of trouble here, since I can't see how you
model your couchdb views to fetch relations. See an introduction on
Entity Relations with couchdb views here:
http://wiki.apache.org/couchdb/EntityRelationship

As an addition, the approach with multiple databases (one for each
model) seems flawed, since what about bigger projects needing
master/slave replication logic. For a bigger amount of Models, this will
not be manageable.

I don't think the CouchDB view approach can be achieved without a
special CouchDB Model overriding save(), find(), etc. Since the approach
differs extremely to the approach the CakePHP Model class is handling
the relations.

Although I think that this is a good start to implement the CouchDB view
API (the BTree indexes are awfully fast :)), I think there is still a
lot to do to make it what I would call a "production ready" DataSource.

Best regards
Thomas

Am Mittwoch, den 13.07.2011, 02:10 -0700 schrieb Clément Hallet:
> Hello to cakePHP
> 
> I created a CouhDB datasource at my company, and we released it as
> open source.
> It handles CRUD methods on a document, and can query the CouchDB
> views.
> 
> Code and documentation are available here : 
> https://github.com/PathMotion/cakephp-couchsource
> 
> If you're interested in review, comment or bug-report it, please feel
> free.
> 
> --
> Clément
> 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to