Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
Method open-controller (in bdb-controller.lisp) is not getting the register parameter I'm specifying. I'm investigating why. Yarek On Wed, Mar 11, 2009 at 12:48 PM, Yarek Kowalik wrote: > Hi Ian, > > I did some digging. Reading in the DB docs: > > *DB_REGISTER*

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
3:40 PM, Yarek Kowalik wrote: > Method open-controller (in bdb-controller.lisp) is not getting the register > parameter I'm specifying. I'm investigating why. > > Yarek > > > On Wed, Mar 11, 2009 at 12:48 PM, Yarek Kowalik > wrote: > >> Hi Ian,

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
nsight. Thanks, Yarek On Wed, Mar 11, 2009 at 11:42 AM, Yarek Kowalik wrote: > - I did a fresh pull from darcs: > > darcs get http://www.common-lisp.net/project/elephant/darcs/elephant-1.0 > > - I rebuilt elephant, and weblocks/elephant > > - I set up my weblocks sto

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
b-max-locks . 2000) (:berkeley-db-max-objects . 2000) (:berkeley-db-map-degree2 . t) (:clsql-lib-paths . nil) (:prebuilt-libraries . nil)) On Wed, Mar 11, 2009 at 11:42 AM, Yarek Kowalik wrote: > - I did a fresh pull from darcs: > > darcs get http://www.

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
o > the latest elephant-1.0 and you should see an updated deserialization-error > report in the backtrace that tells you more about why there was an error. > > Ian > > > On Mar 11, 2009, at 1:28 PM, Yarek Kowalik wrote: > > Ok so that did not work. >> >> I remem

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
I should try :recover nil :register t -- doing that now. Yarek On Wed, Mar 11, 2009 at 10:06 AM, Yarek Kowalik wrote: > Info: > > - BDB 4.7. > - Ubuntu 8.04 on both 32 bit (Intel and whatever Amazon EC2 is using) and > 64 bit (AMD X2 64) versions. > - got the ELEPHANT-1-0-A2

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-11 Thread Yarek Kowalik
lephant/darcs/elephant-1.0 > > Ian > > > > > On Mar 10, 2009, at 6:57 PM, Yarek Kowalik wrote: > > > Hi Ian, > > > > Thanks for replying. > > > > The only difference on my end between Jan version and now is the > > version of Elephant. I can sw

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-10 Thread Yarek Kowalik
Tried with an empty store and :register flag set to T. I get the same error. Hmm... Yarek On Tue, Mar 10, 2009 at 4:11 PM, Yarek Kowalik wrote: > I've set the ':register t' but that does not seem to have an effect. I am > now going to try with a completely empty store dir

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-10 Thread Yarek Kowalik
I've set the ':register t' but that does not seem to have an effect. I am now going to try with a completely empty store directory to see if that makes a difference (maybe new elephant didn't like old data). Yarek On Tue, Mar 10, 2009 at 3:57 PM, Yarek Kowalik wrote: >

Re: [elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-10 Thread Yarek Kowalik
et in the controller after the second process is opened? > > Can you be more specific about what changed between January and now? > > Ian > > On Mar 10, 2009, at 5:31 PM, Yarek Kowalik wrote: > > > Hi folks, > > > > I have two processes accessing the same BDB. On

[elephant-devel] BDB Run recovery errors seen after switching to ELEPHANT-1-0-A2

2009-03-10 Thread Yarek Kowalik
Hi folks, I have two processes accessing the same BDB. One process manages weblocks requests on port 80, the other on port 443. In the elephant from last January, I was able to start, connect and use BDB from both processes. Now, when I the user is redirected to port 443 and the process tries to

Re: [elephant-devel] map-inverted index returns list with nil values

2009-03-02 Thread Yarek Kowalik
To fix this, I run (elephant:find-inverted-index 'product-set 'rank) But I still don't understand how this could have happened. My guess is that it may have to do with adding the 'rank slot recently has confused the index somehow. I don't know how. Yarek On Mon, Mar

[elephant-devel] map-inverted index returns list with nil values

2009-03-02 Thread Yarek Kowalik
I have a strange situation. I get inconsistent results when using get-instances-by-class and map-inverted-index. The first one is correct, the second one returns a bunch of NILs in the list in addition to the correct results. Is this a bug or an expected result? Here are my commands and output:

[elephant-devel] Given the OID, can one obtain the object's slot value without recreating the object?

2009-01-28 Thread Yarek Kowalik
Given the OID, Is there a way to obtain an object slot value without recreating the object? I want to reacreate the object only when a specific value is present. I am aware that I could use map-inverse-index to search for value, but it does not do exacty what I want: I want to get all the object

Re: [elephant-devel] Querying for objects on two slots

2009-01-14 Thread Yarek Kowalik
Correction (missing single quotes): (format t "~8,'0X ~8,0'X" slot-a-val slot-b-val) On Wed, Jan 14, 2009 at 12:07 PM, Yarek Kowalik wrote: > Out of curiosity, the OIDs in elephant are they 32 bit integers or 64? I'm > running on Ubuntu-64/SBCL-64. > > I

Re: [elephant-devel] Querying for objects on two slots

2009-01-14 Thread Yarek Kowalik
x27; > comes after '1 12', which is probably not what you want > Rob > > 2009/1/14 Yarek Kowalik : > > When serializing tuples, is the string representation best: You suggest > > using (format t "~A ~A" a b) - is that efficient enough? what about >

Re: [elephant-devel] Querying for objects on two slots

2009-01-13 Thread Yarek Kowalik
When serializing tuples, is the string representation best: You suggest using (format t "~A ~A" a b) - is that efficient enough? what about doing (cons a b) = is there a way to index and search for conses? Any other ideas? Yarek On Tue, Jan 6, 2009 at 5:17 AM, Alex Mizrahi wrote: > YK> Is thi

[elephant-devel] Mirroring classes from 3rd party packages.

2009-01-08 Thread Yarek Kowalik
I have a dilemma deciding on the structure on persiting data. I need your advice on. I'm relying on a third party package (Amazon-ECS) that helps me parse Amazon XML data feed, with the result that the XML is translated into a set of nested CLOS objects (all classes use metaclass ELEMENT-CLASS).

[elephant-devel] Good practices around adding/deleting class slots.

2009-01-08 Thread Yarek Kowalik
In an evolving site there is a fair chance of adding/changing/deleting slots from a class. What are good practices with respect to these actions in Elephant? Are there specific steps that need to be taken to migrate data from an old class definition to a new class definition? Any gotchas one nee

[elephant-devel] Querying for objects on two slots

2009-01-05 Thread Yarek Kowalik
I've run into several situations where I want to query for objects that match values two or more slots. I currently do something like this: (defclass my-class () ((a :accessor slot-a) (b :accessor slot-b :index b)) (:documentation "my test class")) (find-if (lambda (obj)

Re: [elephant-devel] BDB Replication

2009-01-05 Thread Yarek Kowalik
ration > > I won't be doing this anytime soon, but if someone wants to figure out > the BDB side of this and particularly the callbacks/comm layer I can > help integrate it into elephant. > > Ian > > On Jan 5, 2009, at 4:05 PM, Yarek Kowalik wrote: > > > I

Re: [elephant-devel] BDB Replication

2009-01-05 Thread Yarek Kowalik
Ian, I think the later is what's supported/implemented by BDB: "Berkeley DB supports replication over multiple systems, enabling applications to scale massively with low latency and provide fault tolerance for high availability solutions. This technique works by having all updates go to a designa

Re: [elephant-devel] CLSQL Store

2009-01-04 Thread Yarek Kowalik
Great! Thanks for sharing this info. Yarek On Sun, Jan 4, 2009 at 4:59 AM, Ian Eslick wrote: > I found this same discussion several places on the web and both > Sleepcat and Oracle seem pretty supportive of the more generous > interpretation, which is nice! > > Ian > > On Jan 3, 2009, at 6:02 P

[elephant-devel] Choice of back-end store

2009-01-02 Thread Yarek Kowalik
Could someone point me to any discussions WRT to choice of back-end? I'm looking at BDB and Postmodern. What are advantages/disadvantages of either one? I'm guessing that Postmodern offers an opportunity of using and SQL querying against PostgreSQL backend for out-of-process querying and such (

Re: [elephant-devel] DB migration issue

2008-12-29 Thread Yarek Kowalik
Quan, Unstable is here: http://www.common-lisp.net/project/elephant/darcs/elephant-unstable Yarek On Mon, Dec 29, 2008 at 5:37 AM, Ian Eslick wrote: > That would be elephant-unstable > > Sent from my iPhone > > On Dec 29, 2008, at 7:36 AM, Ian Eslick wrote: > > > Hi Quan, > > > > Can you tr

[elephant-devel] Inherited slots don't get persisted

2008-12-24 Thread Yarek Kowalik
I have two classes, one an "ephemeral" and one persistent. The persistent class inherits from the ephemeral class. When I copy slot values from an ephemeral instance to persistent instance, only the slots that are redefined in the persistent class get persisted properly, the other inherited slot

Re: [elephant-devel] Is it safe to use the same elephant store in two different processes?

2008-12-12 Thread Yarek Kowalik
s of backends, BDB > versions, DB versions, etc). > > Ian > > On Dec 11, 2008, at 5:23 PM, Yarek Kowalik wrote: > > > I'm trying to access BDB 4.5 backed elephant store (elephant- > > unstable) from two d

Re: [elephant-devel] Is it safe to use the same elephant store in two different processes?

2008-12-11 Thread Yarek Kowalik
] Is it safe to use the same elephant store in two different processes? 2008/12/11 Yarek Kowalik : > I've read section 4.13 in the doc, and it appears that it's possible to use > two processes. However, when I launch two processes reading the same > database, the first pro

Re: [elephant-devel] Is it safe to use the same elephant store in two different processes?

2008-12-11 Thread Yarek Kowalik
nt-controller *fashion-origami-elephant-store*) 'product-set)\n") On Thu, Dec 11, 2008 at 2:36 PM, Yarek Kowalik wrote: > I'm guessing it is not... as that's what's causing some of my data > problems I thought BDBs can handle multi-process access. > &g

[elephant-devel] Is it safe to use the same elephant store in two different processes?

2008-12-11 Thread Yarek Kowalik
I'm trying to access BDB 4.5 backed elephant store (elephant-unstable) from two different lisp processes using the elephant package. Is this a safe thing to do? Yarek ___ elephant-devel site list elephant-devel@common-lisp.net http://common-lisp.net/ma

Re: [elephant-devel] Help with an error on app startup/initialization

2008-12-11 Thread Yarek Kowalik
-store*) 'product-item)\n") Locals: SB-DEBUG::ARG-0 = "(elephant::get-db-schemas (weblocks-elephant::elephant-controller *fashion.. Yarek On Thu, Dec 11, 2008 at 1:50 PM, Yarek Kowalik wrote: > BDB 4.5 for back-end. > > I'm using elephant-unstable, pulled last wee

Re: [elephant-devel] Is it safe to use the same elephant store in two different processes?

2008-12-11 Thread Yarek Kowalik
I'm guessing it is not... as that's what's causing some of my data problems I thought BDBs can handle multi-process access. Yarek On Thu, Dec 11, 2008 at 2:23 PM, Yarek Kowalik wrote: > I'm trying to access BDB 4.5 backed elephant store (elephant-unstable) fr

Re: [elephant-devel] Help with an error on app startup/initialization

2008-12-11 Thread Yarek Kowalik
store isn't in the proper state (e.g. was > closed and *store-controller* was not zeroed out). > > On Dec 11, 2008, at 1:56 PM, Yarek Kowalik wrote: > > > I've converted my weblocks app to use elephant. One of the first > > things I do is to initialize some variabl

[elephant-devel] Help with an error on app startup/initialization

2008-12-11 Thread Yarek Kowalik
I've converted my weblocks app to use elephant. One of the first things I do is to initialize some variables. One of the variables is a "demo" item, that I use as a placeholder until the user choses something more specific. I'm having trouble initializing the dummy. Here is my code: (defun init

[elephant-devel] SBCL compilation warnings

2008-12-05 Thread Yarek Kowalik
I get several warnings in SBCL 1.0.20 that are related to use of dynamic-extent. For example, here it complains about 'COLLECT' is an indefined variable: (defun get-query-instances (constraints) "Get a list of instances according to the query constraints" (declare (dynamic-extent constraints)