Gang,

I am facing a situation where we will end up with a large number (10s
of thousands) of Associations from one entity to another, and
sequential search is not really feasible. Not only will it be slow,
but also very inefficient on memory, if the entire ManyAssociation
list is brought in. Unfortunately, Identity is not feasible in my
case, and instead a "look up by property,value" would be really
useful. Since I know programmatically what value I want to lookup via,
I think a "MappedAssociation" would do the trick, effectively a entity
store backed hashmap with String as key and EntityRef as value. I
guess that I can do this manually in the application code, but then I
miss the sweet entity dereferencing mechanism that Qi4j provides, and
also once we get to properly implement aggregates (if ever) I want
make sure I have "Specification" support.

WDYT?

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to