Hi,<br><br>I've been using elephant 0.91 for quite a while now, with a berkeley 4.6 backend, and it's been a joy.<br>First of all my thanks to all contributors on this project!<br>Recently however, as usage has gone up, some problems have started occuring.<br>
One big problem has been that when I run (get-instances-by-class 'foo) I get a list of foo, but with some nil's occuring as well.<br>Is this a sign of database corruption? How do I remedy this? I've tried running both the recover and checkpoint tools on the db, but no change.<br>
I've experienced deadlocks as well, and had to kill my sbcl - wondering if that (non clean shutdown) is what caused the problems in the first place.<br>Or is this something to do with indexes - could they be remade somehow? I defined my foo class like this:<br>
<br><br clear="all"> (DEFPCLASS FOO ()<br> ((FIELD1 :ACCESSOR FIELD1 :INITARG :FIELD1 :INITFORM NIL :INDEX T)<br> (FIELD2 :ACCESSOR FIELD2 :INITARG :FIELD2 :INITFORM NIL :INDEX<br> NIL)<br> (FIELD2 :ACCESSOR FIELD2 :INITARG :FIELD2 :INITFORM NIL :INDEX<br>
NIL))<br> (:INDEX T))<br> (DEFUN GET-FOO-LIST () (GET-INSTANCES-BY-CLASS 'FOO))<br> (DEFUN GET-FOO-BY-FIELD1 (DB::VALUE)<br> (GET-INSTANCE-BY-VALUE 'FOO 'FIELD1 DB::VALUE)))<br><br><br>Appreciate any help,<br>
Aslak<br>