Re: [elephant-devel] inherited indices

2011-05-01 Thread Alex Mizrahi
IE> One solution is to get rid of the :inherited option and simply allow a IE> :subclasses? option to get-instances-by-value/range that uses the mop IE> to find subclass indexes and does a merge sort of all objects returned IE> by the various indexes. This becomes time O(k log_b n) and gets ri

Re: [elephant-devel] inherited indices

2011-04-28 Thread Vassilis Radis
On Thu, Apr 28, 2011 at 7:31 PM, Alex Mizrahi wrote: > > Why? I am by no means an expert and never looked thoroughly the code, > > but ,abstractly speaking, doesnt it boil down to just creating > > more indexes automatically at class definition time? > > Code assumes that there is only one index

Re: [elephant-devel] inherited indices

2011-04-28 Thread Vassilis Radis
On Thu, Apr 28, 2011 at 8:34 PM, Ian Eslick wrote: > I agree the semantics of inherited indexing is off. I implemented what > worked for me at the time and was an easy extension to what was already > there. However, the issues around class redefinition, database connection > state, schema synch

Re: [elephant-devel] inherited indices

2011-04-28 Thread Ian Eslick
I agree the semantics of inherited indexing is off. I implemented what worked for me at the time and was an easy extension to what was already there. However, the issues around class redefinition, database connection state, schema synchronization, data loss protection, etc make code changes ar

Re: [elephant-devel] inherited indices

2011-04-28 Thread Alex Mizrahi
> Why? I am by no means an expert and never looked thoroughly the code, > but ,abstractly speaking, doesnt it boil down to just creating > more indexes automatically at class definition time? Code assumes that there is only one index it needs to update at time, so it needs to be revised to handl

Re: [elephant-devel] inherited indices

2011-04-28 Thread Vassilis Radis
I think ideally this would be resolved with a new type of 'hierarchical' > slot indices where instances will be indexed in many indices at once -- > when > you make super-frob instance it will be indexed by frob-style both in > super-frob and frob index (and, generally, in all super-classes). In th

Re: [elephant-devel] inherited indices

2011-04-28 Thread Vassilis Radis
On Wed, Apr 27, 2011 at 10:34 PM, Alex Mizrahi wrote: > > Currently, I do something along the lines of the following on the results > > on get-instance[s]-by-XXX functions: > > (remove-if #'(lambda (x) (not (member ',class-name (mapcar #'class-name > > (sb-mop:class-precedence-list x) lst :key

Re: [elephant-devel] inherited indices

2011-04-27 Thread Alex Mizrahi
> Currently, I do something along the lines of the following on the results > on get-instance[s]-by-XXX functions: > (remove-if #'(lambda (x) (not (member ',class-name (mapcar #'class-name > (sb-mop:class-precedence-list x) lst :key #'class-of) > if I want results on the whole inheritance cha

Re: [elephant-devel] inherited indices

2011-04-27 Thread Vassilis Radis
Currently, I do something along the lines of the following on the results on get-instance[s]-by-XXX functions: (remove-if #'(lambda (x) (not (member ',class-name (mapcar #'class-name (sb-mop:class-precedence-list x) lst :key #'class-of) if I want results on the whole inheritance chain, or (re