Re: [elephant-devel] Backend and data retrieval questions

2008-10-22 Thread Alex Mizrahi
??>> First, since I need to use multiple web application machines, I'm using the Postmodern backend. I assume there's no sane way to share a BDB db between multiple machines? My BDB knowledge more or less caps out at using it as a key/value store from C years ago, I'm afra

Re: [elephant-devel] Backend and data retrieval questions

2008-10-22 Thread Ian Eslick
As a storage server or as an rpc? It would actually be pretty complex for persistent objects unless you had replication implemented (which no one to my knowledge has done with BDB+Elephant) because in the most straightforward implementation you would have to have the same persistent ids and

Re: [elephant-devel] Backend and data retrieval questions

2008-10-22 Thread Robert Synnott
Thanks :) I ended up going with nasty derived indices for the time being for my multiple-index-query problem. It strikes me that it would be useful to have a relatively high-level server with a BDB store, that knew about the same objects as the clients, and could have methods acting on those objec

Re: [elephant-devel] Backend and data retrieval questions

2008-10-22 Thread Leslie P. Polzer
Dear Rob, On Tue, Oct 21, 2008 at 06:19:34PM +0100, Robert Synnott wrote: > First, since I need to use multiple web application machines, I'm > using the Postmodern backend. I assume there's no sane way to share a > BDB db between multiple machines? My BDB knowledge more or less caps > out at us

Re: [elephant-devel] Backend and data retrieval questions

2008-10-22 Thread Leslie P. Polzer
> using cursor API. to get first ten items, first do cursor-pset, then > cursor-pnext > 9 times. I'd use the higher-level MAP-CLASS instead: (defun first-ten (classname) ; untested (let ((i 1) result) (map-class (lambda (o) (when (> i 10) (return-from first-ten resu

Re: [elephant-devel] Backend and data retrieval questions

2008-10-21 Thread Red Daly
On Tue, Oct 21, 2008 at 1:37 PM, Alex Mizrahi <[EMAIL PROTECTED]>wrote: > RS> First, since I need to use multiple web application machines, I'm > RS> using the Postmodern backend. I assume there's no sane way to share a > RS> BDB db between multiple machines? > > i think so too Berkeley DB su

Re: [elephant-devel] Backend and data retrieval questions

2008-10-21 Thread Alex Mizrahi
RS> First, since I need to use multiple web application machines, I'm RS> using the Postmodern backend. I assume there's no sane way to share a RS> BDB db between multiple machines? i think so too RS> Also, I want to do paginated data, so, for instance, I might, given an RS> object A with in

[elephant-devel] Backend and data retrieval questions

2008-10-21 Thread Robert Synnott
Hi, I'm using Elephant for a website backend. First, since I need to use multiple web application machines, I'm using the Postmodern backend. I assume there's no sane way to share a BDB db between multiple machines? My BDB knowledge more or less caps out at using it as a key/value store from C yea