Hey,

I've been changing the way the indexing system gets updates from the 
EntityStore. Instead of having a specific SideEffect there's a new 
generic EntityStoreListener facility, with a SideEffect on the 
EntityStore that notifies *all* interested parties. Indexing is one 
thing, but backups, replication, management and logging are other 
possible uses.

One problem I'm hitting though is that if this is "always on", then it 
means that MemoryEntityStoreService always gets indexed, and when it is 
used for configurations this becomes a problem. Basically, a change will 
trigger the indexing, which will attempt to load/create the config for 
the indexing, which will use the EntityStore, which will trigger the 
indexing, and then this loops until OutOfMemory.

I'm not sure about the best way to get around this. First of all, should 
configurations be stored in an EntityStore that is not indexed? That 
would be the easiest way to do it. If not, and MemoryEntityStoreService 
is always indexed, then the question is how to structure the assembly so 
that configurations are not unintentionally indexed. I can't figure out 
right now how to assemble the app properly so that this works. Any ideas 
are most welcome.

/Rickard

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

Reply via email to