Re: CouchDB beginnings
"Maksim Lin for technical support mailling lists" <[email protected]> Fri, 14 Dec 2007 15:22:44 +1100
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
> Nice work, Joshua. I hope to try it out soon. It would be > cool if Helma's internal database were one day also JSON > based but this is an excellent move with CouchDB. I've also thought about how helmas internal DB could be "beefed up" a bit to make it useful for production use. The main issues with it (for production use) at the moment are: - scalability (due to using 1 folder for all data files per app) - no ACID (thought I may be wrong - I havn't looked closely at the Java code) In the past its been suggested using separate subfolders for helma DBs to help with scaling to lare numbers of objects and I've been toying with a few ideas but I don't have anything yet that's even workable for the moment. > I've been working with Persevere server for a few days. > Technologically it is really cool - is Rhino based, supports > JSONPath, running Javascript on the server via JSON-RPC, > supports multiple data sources. However it is beta software > and I'm working through a few issues. Yes Perserve looks interesting but I it looks like they just use "automatic" mapping to a relational DB (looks like they ship both derby & hsqldb jars) for their backend storage so not much help in coming up with a more production level 'native' db backend for helma - at least that's my perspective :-) > Phil > > > On Dec 9, 2007 12:28 AM, Joshua Paine <[email protected]> wrote: > > > FYI, I've ported the basic CouchDB javascript lib that > comes with > CouchDB from browser XMLHttpRequest, etc. to > helma.Http. In so doing I > had to work through a bug in helma.Http, so if you want > to use this > you'll need to make the changes to your local > modules/helma/Http.js that > I suggest in: > > <http://helma.org/bugs/show_bug.cgi?id=583> > > And then get the CouchDB lib from: > > < http://helma.pastebin.com/f7082c07e > <http://helma.pastebin.com/f7082c07e> > > > Once you have patched Http.js and included CouchDB.js, > you can do easy > stuff like this: > > var c = new CouchDB('testing','localhost',8888); > c.createDb (); > c.save({ title:'Testing', content:[1,2,3] }); > > Congrats! You just created a DB and saved a document in it. > > See > < > http://jan.prima.de/~jan/plok/archives/108-Programming-CouchDB > -with-Javascript.html > <http://jan.prima.de/%7Ejan/plok/archives/108-Programming-Couc > hDB-with-Javascript.html> > > for a sample client-side app and the docs at > < > http://www.couchdbwiki.com/index.php?title=HTTP_REST_API > <http://www.couchdbwiki.com/index.php?title=HTTP_REST_API> >. > > -Joshua > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user > > > >