[elephant-devel] instance cache

Alex Mizrahi killerstorm at newmail.ru
Fri Jan 18 11:52:13 UTC 2008


i've noticed one problem with recreate-instance changes -- it have broken 
instance cache. instances were cached in initialize-instance :before, which 
was bypassed, and no instances were cached.

moving cache-instance into intial-persistent-setup fixed this, but i'm not 
sure if it's right place..

this problem broke get-instances-by-value when value is a persistent object. 
postmodern backend (and i think CLSQL too) use lisp-compare-equal/equalp to 
check if objects are same in cursor-set, and without instance cache 
persistent objects were deserialialized into different objects, so they are 
not EQUAL, and cursor-set returned nil, so did get-instances-by-value.

i wonder why such stuff is not in tests, it seems only numbers and strings 
are tested as index keys.







More information about the elephant-devel mailing list